Skip to content

Commit

Permalink
pcmcia: xirc2ps_cs bugfix
Browse files Browse the repository at this point in the history
We need to set io_lines to 10 unconditionally.

Reported-by: Komuro <komurojun-mbn@nifty.com>
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Aug 13, 2010
1 parent fe622e7 commit 4914c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/pcmcia/xirc2ps_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4914c7f

Please sign in to comment.