diff options
Diffstat (limited to 'drivers/ide/ide-cs.c')
-rw-r--r-- | drivers/ide/ide-cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-cs.c b/drivers/ide/ide-cs.c index cf7cb4953aa5..07e37876559c 100644 --- a/drivers/ide/ide-cs.c +++ b/drivers/ide/ide-cs.c | |||
@@ -227,8 +227,7 @@ static int pcmcia_check_one_config(struct pcmcia_device *pdev, | |||
227 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { | 227 | if ((cfg->io.nwin > 0) || (dflt->io.nwin > 0)) { |
228 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; | 228 | cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &dflt->io; |
229 | pdev->io_lines = io->flags & CISTPL_IO_LINES_MASK; | 229 | pdev->io_lines = io->flags & CISTPL_IO_LINES_MASK; |
230 | 230 | pdev->config_index = cfg->index; | |
231 | pdev->conf.ConfigIndex = cfg->index; | ||
232 | pdev->resource[0]->start = io->win[0].base; | 231 | pdev->resource[0]->start = io->win[0].base; |
233 | if (!(io->flags & CISTPL_IO_16BIT)) { | 232 | if (!(io->flags & CISTPL_IO_16BIT)) { |
234 | pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; | 233 | pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; |