diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 20:13:04 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 20:13:04 +0100 |
commit | 71518342bfdfbe508ee325ab5e20984ba2da7de2 (patch) | |
tree | 436adf2e36cb4c41f5edab1bab1a3d67fd182688 /drivers | |
parent | swarm: set hwif->chipset (diff) | |
download | linux-71518342bfdfbe508ee325ab5e20984ba2da7de2.tar.xz linux-71518342bfdfbe508ee325ab5e20984ba2da7de2.zip |
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 <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 817564fba820..a7a1cd85f15d 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++) { |