Commit 71518342 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent aae73b4e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1405,9 +1405,13 @@ 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++) {
		if (idx[i] != 0xff)