projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03dd5e1
)
Input: pc110pad - use no_pci_devices()
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 30 Jan 2009 06:56:08 +0000
(22:56 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 30 Jan 2009 07:07:17 +0000
(23:07 -0800)
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>
drivers/input/mouse/pc110pad.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/mouse/pc110pad.c
b/drivers/input/mouse/pc110pad.c
index fd09c8df81f2c2888490d971f684002dfc84b383..f63995f854ff5a75c37dcff58a1a4709c344bfd1 100644
(file)
--- 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",