[PATCH 11/18] pcmcia: do not use io_req_t when calling pcmcia_request_io()

Komuro komurojun-mbn at nifty.com
Sat Aug 21 00:34:02 EDT 2010


Hi

>@@ -463,13 +463,13 @@ static int simple_config(struct pcmcia_device *link)
> 	/* If the card is already configured, look up the port and irq */
> 	if (link->function_config) {
> 		unsigned int port = 0;
>-		if ((link->io.BasePort2 != 0) &&
>-		    (link->io.NumPorts2 == 8)) {
>-			port = link->io.BasePort2;
>+		if ((link->resource[1]->end != 0) &&
>+			(resource_size(link->resource[1]) == 8)) {
>+			port = link->resource[1]->end;
> 			info->slave = 1;

sorry,
It should be link->resource[1]->start;
			(resource_size(link->resource[1]) == 8)) {
			port = link->resource[1]->start;  << HERE!!
 

 



More information about the linux-pcmcia mailing list