|
@@ -1451,6 +1451,7 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d,
|
|
if (hwif_init(hwif) == 0) {
|
|
if (hwif_init(hwif) == 0) {
|
|
printk(KERN_INFO "%s: failed to initialize IDE "
|
|
printk(KERN_INFO "%s: failed to initialize IDE "
|
|
"interface\n", hwif->name);
|
|
"interface\n", hwif->name);
|
|
|
|
+ device_unregister(hwif->portdev);
|
|
device_unregister(&hwif->gendev);
|
|
device_unregister(&hwif->gendev);
|
|
ide_disable_port(hwif);
|
|
ide_disable_port(hwif);
|
|
continue;
|
|
continue;
|