Skip to content

Commit

Permalink
delkin_cb: add warm-plug support
Browse files Browse the repository at this point in the history
Don't fail the probe if there are no devices attached to the controller.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 10, 2008
1 parent 1c4d4ad commit 96fe439
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/ide/pci/delkin_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96fe439

Please sign in to comment.