mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
03dd5e1ba5
commit
b0ee0d3eb3
1 changed files with 1 additions and 4 deletions
|
@ -111,11 +111,8 @@ static int __init pc110pad_init(void)
|
||||||
struct pci_dev *dev;
|
struct pci_dev *dev;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
|
if (!no_pci_devices())
|
||||||
if (dev) {
|
|
||||||
pci_dev_put(dev);
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
|
||||||
|
|
||||||
if (!request_region(pc110pad_io, 4, "pc110pad")) {
|
if (!request_region(pc110pad_io, 4, "pc110pad")) {
|
||||||
printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n",
|
printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n",
|
||||||
|
|
Loading…
Reference in a new issue