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(-)

Index: b/drivers/ide/ide-probe.c
===================================================================
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -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++) {
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to