Commit 5cf80280 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] serial_cs CardServices removal fix

From: Russell King <rmk@arm.linux.org.uk>
parent 95410090
...@@ -300,10 +300,10 @@ static int setup_serial(struct serial_info * info, ioaddr_t port, int irq) ...@@ -300,10 +300,10 @@ static int setup_serial(struct serial_info * info, ioaddr_t port, int irq)
/*====================================================================*/ /*====================================================================*/
static int 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; int i;
i = CardServices(fn, handle, tuple); i = pcmcia_get_first_tuple(handle, tuple);
if (i != CS_SUCCESS) if (i != CS_SUCCESS)
return CS_NO_MORE_ITEMS; return CS_NO_MORE_ITEMS;
i = pcmcia_get_tuple_data(handle, tuple); 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) ...@@ -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); return pcmcia_parse_tuple(handle, tuple, parse);
} }
#define first_tuple(a, b, c) get_tuple(GetFirstTuple, a, b, c) static int
#define next_tuple(a, b, c) get_tuple(GetNextTuple, a, b, c) 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);
}
/*====================================================================*/ /*====================================================================*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment