Skip to content

Commit

Permalink
ide: add hwif->chipset fixup to ide_device_add()
Browse files Browse the repository at this point in the history
Add hwif->chipset fixup identical to the one in ideprobe_init()
to ide_device_add().

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent aae73b4 commit 7151834
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,12 @@ int ide_device_add(u8 idx[4])

hwif = &ide_hwifs[idx[i]];

if (hwif->present)
if (hwif->present) {
if (hwif->chipset == ide_unknown ||
hwif->chipset == ide_forced)
hwif->chipset = ide_generic;
hwif_register_devices(hwif);
}
}

for (i = 0; i < 4; i++) {
Expand Down

0 comments on commit 7151834

Please sign in to comment.