Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Akinobu Mita and committed by
Dmitry Torokhov
65a2d225 bff19b1d

+1 -1
+1 -1
drivers/input/mouse/pc110pad.c
··· 113 113 dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL); 114 114 if (dev) { 115 115 pci_dev_put(dev); 116 - return -ENOENT; 116 + return -ENODEV; 117 117 } 118 118 119 119 if (!request_region(pc110pad_io, 4, "pc110pad")) {