Skip to content

Commit

Permalink
ide-generic: set hwif->chipset
Browse files Browse the repository at this point in the history
This hwif->chipset fixup is already present in ide_device_add_all()
but for warm-plug support we also need to reserve not currently present
interfaces.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 17, 2008
1 parent a594eeb commit ce9b248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/ide/ide-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ static int __init ide_generic_init(void)
for (i = 0; i < MAX_HWIFS; i++) {
ide_hwif_t *hwif = &ide_hwifs[i];

if (hwif->io_ports[IDE_DATA_OFFSET] && !hwif->present)
if (hwif->io_ports[IDE_DATA_OFFSET] &&
(hwif->chipset == ide_unknown ||
hwif->chipset == ide_forced))
idx[i] = i;
else
idx[i] = 0xff;
Expand Down

0 comments on commit ce9b248

Please sign in to comment.