ide: add hwif->chipset fixup to ide_device_add()
PATCH 13/21 ide: add hwif->chipset fixup to ide_device_add()
Add hwif->chipset fixup identical to the one in ideprobe_init() to ide_device_add().
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-probe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/ide/ide-probe.c +5 -1
@@ -1412,8 +1412,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++) {
Quoted 4 lines · Bartlomiej Zolnierkiewicz
Add
hwif->chipsetfixup identical to the one inideprobe_init()toide_device_add().Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei