Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5cf80280
Commit
5cf80280
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] serial_cs CardServices removal fix
From: Russell King <rmk@arm.linux.org.uk>
parent
95410090
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
drivers/serial/serial_cs.c
drivers/serial/serial_cs.c
+14
-4
No files found.
drivers/serial/serial_cs.c
View file @
5cf80280
...
...
@@ -300,10 +300,10 @@ static int setup_serial(struct serial_info * info, ioaddr_t port, int irq)
/*====================================================================*/
static
int
get_tuple
(
int
fn
,
client_handle_t
handle
,
tuple_t
*
tuple
,
cisparse_t
*
parse
)
first_tuple
(
client_handle_t
handle
,
tuple_t
*
tuple
,
cisparse_t
*
parse
)
{
int
i
;
i
=
CardServices
(
fn
,
handle
,
tuple
);
i
=
pcmcia_get_first_tuple
(
handle
,
tuple
);
if
(
i
!=
CS_SUCCESS
)
return
CS_NO_MORE_ITEMS
;
i
=
pcmcia_get_tuple_data
(
handle
,
tuple
);
...
...
@@ -312,8 +312,18 @@ get_tuple(int fn, client_handle_t handle, tuple_t * tuple, cisparse_t * parse)
return
pcmcia_parse_tuple
(
handle
,
tuple
,
parse
);
}
#define first_tuple(a, b, c) get_tuple(GetFirstTuple, a, b, c)
#define next_tuple(a, b, c) get_tuple(GetNextTuple, a, b, c)
static
int
next_tuple
(
client_handle_t
handle
,
tuple_t
*
tuple
,
cisparse_t
*
parse
)
{
int
i
;
i
=
pcmcia_get_next_tuple
(
handle
,
tuple
);
if
(
i
!=
CS_SUCCESS
)
return
CS_NO_MORE_ITEMS
;
i
=
pcmcia_get_tuple_data
(
handle
,
tuple
);
if
(
i
!=
CS_SUCCESS
)
return
i
;
return
pcmcia_parse_tuple
(
handle
,
tuple
,
parse
);
}
/*====================================================================*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment