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

Commit 65a2d225 authored by Akinobu Mita's avatar Akinobu Mita Committed by Dmitry Torokhov
Browse files

Input: pc110pad - return proper error



The driver should return -ENODEV rather than -ENOENT when it
detects a PCI device in the box.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent bff19b1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ static int __init pc110pad_init(void)
	dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
	if (dev) {
		pci_dev_put(dev);
		return -ENOENT;
		return -ENODEV;
	}

	if (!request_region(pc110pad_io, 4, "pc110pad")) {