mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
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>
This commit is contained in:
parent
aae73b4ed7
commit
71518342bf
1 changed files with 5 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue