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/ata/pata_pcmcia.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/ata/pata_pcmcia.c')
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index 8cccd1b81ee2..4b8bd2021a9c 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -181,7 +181,6 @@ static int pcmcia_check_one_config(struct pcmcia_device *pdev, | |||
181 | 181 | ||
182 | if ((cfg->io.nwin > 0) || (stk->dflt.io.nwin > 0)) { | 182 | if ((cfg->io.nwin > 0) || (stk->dflt.io.nwin > 0)) { |
183 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &stk->dflt.io; | 183 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &stk->dflt.io; |
184 | pdev->conf.ConfigIndex = cfg->index; | ||
185 | pdev->io.BasePort1 = io->win[0].base; | 184 | pdev->io.BasePort1 = io->win[0].base; |
186 | pdev->io.IOAddrLines = io->flags & CISTPL_IO_LINES_MASK; | 185 | pdev->io.IOAddrLines = io->flags & CISTPL_IO_LINES_MASK; |
187 | if (!(io->flags & CISTPL_IO_16BIT)) | 186 | if (!(io->flags & CISTPL_IO_16BIT)) |