From: Bartlomiej Zolnierkiewicz Date: Sat, 26 Jan 2008 19:13:04 +0000 (+0100) Subject: ide: add hwif->chipset fixup to ide_device_add() X-Git-Tag: v3.12-rc1~24118^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71518342bfdfbe508ee325ab5e20984ba2da7de2;p=kernel%2Fkernel-generic.git ide: add hwif->chipset fixup to ide_device_add() Add hwif->chipset fixup identical to the one in ideprobe_init() to ide_device_add(). Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 817564f..a7a1cd8 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -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++) {