diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-02 08:59:13 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 19:21:29 -0400 |
commit | 498ac1899b62626bf6879a251d75c22ec564c559 (patch) | |
tree | d17c6c02ac97db98ac343a7ca1190147047385b2 /drivers/scsi/pcmcia/aha152x_stub.c | |
parent | 84e2d34004dcd0c90d1af43a143511b334f11a4d (diff) |
pcmcia: pcmcia_config_loop() ConfigIndex unification
Almost all drivers set p_dev->conf.ConfigIndex to cfg->index in
the pcmcia_config_loop() callback function. Therefore, factor it out.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/scsi/pcmcia/aha152x_stub.c')
-rw-r--r-- | drivers/scsi/pcmcia/aha152x_stub.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/pcmcia/aha152x_stub.c b/drivers/scsi/pcmcia/aha152x_stub.c index bbcc20f2d9d0..5e4d8e42ba0b 100644 --- a/drivers/scsi/pcmcia/aha152x_stub.c +++ b/drivers/scsi/pcmcia/aha152x_stub.c | |||
@@ -152,7 +152,6 @@ static int aha152x_config_check(struct pcmcia_device *p_dev, | |||
152 | p_dev->io.BasePort1 = cfg->io.win[1].base; | 152 | p_dev->io.BasePort1 = cfg->io.win[1].base; |
153 | if ((cfg->io.nwin > 0) && | 153 | if ((cfg->io.nwin > 0) && |
154 | (p_dev->io.BasePort1 < 0xffff)) { | 154 | (p_dev->io.BasePort1 < 0xffff)) { |
155 | p_dev->conf.ConfigIndex = cfg->index; | ||
156 | if (!pcmcia_request_io(p_dev, &p_dev->io)) | 155 | if (!pcmcia_request_io(p_dev, &p_dev->io)) |
157 | return 0; | 156 | return 0; |
158 | } | 157 | } |