diff options
-rw-r--r-- | drivers/ide/ide-generic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c index 9ebec08eefd9..c1d8d71f8791 100644 --- a/drivers/ide/ide-generic.c +++ b/drivers/ide/ide-generic.c | |||
@@ -20,7 +20,9 @@ static int __init ide_generic_init(void) | |||
20 | for (i = 0; i < MAX_HWIFS; i++) { | 20 | for (i = 0; i < MAX_HWIFS; i++) { |
21 | ide_hwif_t *hwif = &ide_hwifs[i]; | 21 | ide_hwif_t *hwif = &ide_hwifs[i]; |
22 | 22 | ||
23 | if (hwif->io_ports[IDE_DATA_OFFSET] && !hwif->present) | 23 | if (hwif->io_ports[IDE_DATA_OFFSET] && |
24 | (hwif->chipset == ide_unknown || | ||
25 | hwif->chipset == ide_forced)) | ||
24 | idx[i] = i; | 26 | idx[i] = i; |
25 | else | 27 | else |
26 | idx[i] = 0xff; | 28 | idx[i] = 0xff; |