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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!!
 

 
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux