projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c445a31
)
[SPARC] openprom: Switch to ref counting PCI API
author
Alan Cox
<alan@redhat.com>
Tue, 24 Apr 2007 05:50:53 +0000
(22:50 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Apr 2007 05:50:53 +0000
(22:50 -0700)
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/openprom.c
patch
|
blob
|
history
diff --git
a/drivers/sbus/char/openprom.c
b/drivers/sbus/char/openprom.c
index
eec28c1
..
5041c9d
100644
(file)
--- 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_
fi
nd_slot (((int *) op->oprom_array)[0],
+ pdev = pci_
get_bus_a
nd_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
}