Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96fe439e authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

delkin_cb: add warm-plug support



Don't fail the probe if there are no devices attached to the controller.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 1c4d4ad5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;