summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-01-29 22:56:08 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-01-29 23:07:17 -0800
commitb0ee0d3eb31a163c958f2960906c44bcdfdc607b (patch)
treee181204bcedcd1e32c7e5152c1e7a4dd32f0dd81
parent03dd5e1ba55d43c3a12b8514f9889049037f17f7 (diff)
downloadop-kernel-dev-b0ee0d3eb31a163c958f2960906c44bcdfdc607b.zip
op-kernel-dev-b0ee0d3eb31a163c958f2960906c44bcdfdc607b.tar.gz
Input: pc110pad - use no_pci_devices()
Use no_pci_devices() helper instead of doing explicit get/put. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--drivers/input/mouse/pc110pad.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/mouse/pc110pad.c b/drivers/input/mouse/pc110pad.c
index fd09c8d..f63995f 100644
--- a/drivers/input/mouse/pc110pad.c
+++ b/drivers/input/mouse/pc110pad.c
@@ -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",
OpenPOWER on IntegriCloud