Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=71518342bfdfbe508ee325ab5e20984ba2da7de2
Commit:     71518342bfdfbe508ee325ab5e20984ba2da7de2
Parent:     aae73b4ed721912dbd4909ae5f618080c64594de
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 26 20:13:04 2008 +0100
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Sat Jan 26 20:13:04 2008 +0100

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/ide-probe.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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++) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to