delkin_cb: add warm-plug support
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 10 Jun 2008 18:56:38 +0000 (20:56 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 10 Jun 2008 18:56:38 +0000 (20:56 +0200)
Don't fail the probe if there are no devices attached to the controller.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/delkin_cb.c

index 1b69e4dd5522cc51bfbb76c42fb0d5f6daca4281..538f8045d4167fa7a198e122ced0c7434ca3385f 100644 (file)
@@ -100,15 +100,11 @@ delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)
 
        ide_device_add(idx, &delkin_cb_port_info);
 
-       if (!hwif->present)
-               goto 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;