diff options
author | Alan Cox <alan@redhat.com> | 2007-04-24 07:50:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-04-24 07:50:53 +0200 |
commit | 7e9f33461521180ef2c148c0b77eeb412d18ffae (patch) | |
tree | 004fdb857f30e7146caae45c691fecad232b2efd | |
parent | Add missing USRobotics Wireless Adapter (Model 5423) id into zd1211rw (diff) | |
download | linux-7e9f33461521180ef2c148c0b77eeb412d18ffae.tar.xz linux-7e9f33461521180ef2c148c0b77eeb412d18ffae.zip |
[SPARC] openprom: Switch to ref counting PCI API
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/sbus/char/openprom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index eec28c142a59..5041c9dfbe3b 100644 --- a/drivers/sbus/char/openprom.c +++ b/drivers/sbus/char/openprom.c @@ -249,7 +249,7 @@ static int oprompci2node(void __user *argp, struct device_node *dp, struct openp #ifdef CONFIG_PCI struct pci_dev *pdev; struct pcidev_cookie *pcp; - pdev = pci_find_slot (((int *) op->oprom_array)[0], + pdev = pci_get_bus_and_slot (((int *) op->oprom_array)[0], ((int *) op->oprom_array)[1]); pcp = pdev->sysdata; @@ -260,6 +260,7 @@ static int oprompci2node(void __user *argp, struct device_node *dp, struct openp op->oprom_size = sizeof(int); err = copyout(argp, op, bufsize + sizeof(int)); } + pci_dev_put(pdev); #endif } |