From: Dominik Brodowski Date: Fri, 13 Aug 2010 18:33:34 +0000 (+0200) Subject: pcmcia: xirc2ps_cs bugfix X-Git-Tag: v3.0~3611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4914c7f881845367b9198631a014ab466329b9e5;p=platform%2Fkernel%2Flinux-amlogic.git pcmcia: xirc2ps_cs bugfix We need to set io_lines to 10 unconditionally. Reported-by: Komuro CC: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 4eb6f98..f5819526 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c @@ -808,6 +808,7 @@ xirc2ps_config(struct pcmcia_device * link) } link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; + link->io_lines = 10; if (local->modem) { int pass; @@ -839,7 +840,6 @@ xirc2ps_config(struct pcmcia_device * link) } printk(KNOT_XIRC "no ports available\n"); } else { - link->io_lines = 10; link->resource[0]->end = 16; for (ioaddr = 0x300; ioaddr < 0x400; ioaddr += 0x10) { link->resource[0]->start = ioaddr;