Skip to content

Commit

Permalink
Input: pc110pad - return proper error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Dmitry Torokhov committed Dec 21, 2006
1 parent bff19b1 commit 65a2d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/pc110pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 65a2d22

Please sign in to comment.