提交 65a2d225 编写于 作者: A Akinobu Mita 提交者: Dmitry Torokhov

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: NAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 bff19b1d
......@@ -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")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册