diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-25 20:51:45 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-25 20:51:45 (GMT) |
commit | 2fb90b128aaf7758e3de22119515fb11174d4f23 (patch) | |
tree | 082a1b9eaa0c17ca6ccae3aef03f58a77d60dc69 /drivers/sbus/char/openprom.c | |
parent | 707abb7986293b24b83dba163ffc79d8895236f9 (diff) | |
parent | 5a68b2e346f043820e2ba0cde57cc75b4561c124 (diff) | |
download | linux-2fb90b128aaf7758e3de22119515fb11174d4f23.tar.xz |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[PARPORT] SUNBPP: Fix OOPS when debugging is enabled.
[SPARC] openprom: Switch to ref counting PCI API
Diffstat (limited to 'drivers/sbus/char/openprom.c')
-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 eec28c1..5041c9d 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 } |