Don't fail the probe if there are no devices attached to the controller.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
ide_device_add(idx, &delkin_cb_port_info);
ide_device_add(idx, &delkin_cb_port_info);
- if (!hwif->present)
- goto out_disable;
-
pci_set_drvdata(dev, hwif);
return 0;
out_disable:
pci_set_drvdata(dev, hwif);
return 0;
out_disable:
- printk(KERN_ERR "delkin_cb: no IDE devices found\n");
pci_release_regions(dev);
pci_disable_device(dev);
return -ENODEV;
pci_release_regions(dev);
pci_disable_device(dev);
return -ENODEV;