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

Commit b0ee0d3e authored by Roel Kluin's avatar Roel Kluin Committed by Dmitry Torokhov
Browse files

Input: pc110pad - use no_pci_devices()



Use no_pci_devices() helper instead of doing explicit get/put.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 03dd5e1b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -111,11 +111,8 @@ static int __init pc110pad_init(void)
	struct pci_dev *dev;
	int err;

	dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
	if (dev) {
		pci_dev_put(dev);
	if (!no_pci_devices())
		return -ENODEV;
	}

	if (!request_region(pc110pad_io, 4, "pc110pad")) {
		printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n",