git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
ppc
/
platforms
/
mcpn765.c
diff --git
a/arch/ppc/platforms/mcpn765.c
b/arch/ppc/platforms/mcpn765.c
index
348118b
..
83dcc8f
100644
(file)
--- a/
arch/ppc/platforms/mcpn765.c
+++ b/
arch/ppc/platforms/mcpn765.c
@@
-185,7
+185,7
@@
mcpn765_setup_via_82c586b(void)
struct pci_dev *dev;
u_char c;
struct pci_dev *dev;
u_char c;
- if ((dev = pci_
find
_device(PCI_VENDOR_ID_VIA,
+ if ((dev = pci_
get
_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_82C586_0,
NULL)) == NULL) {
printk("No VIA ISA bridge found\n");
PCI_DEVICE_ID_VIA_82C586_0,
NULL)) == NULL) {
printk("No VIA ISA bridge found\n");
@@
-209,8
+209,8
@@
mcpn765_setup_via_82c586b(void)
pci_write_config_dword(dev, 0x54, 0);
pci_write_config_byte(dev, 0x58, 0);
pci_write_config_dword(dev, 0x54, 0);
pci_write_config_byte(dev, 0x58, 0);
-
- if ((dev = pci_
find
_device(PCI_VENDOR_ID_VIA,
+ pci_dev_put(dev);
+ if ((dev = pci_
get
_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_82C586_1,
NULL)) == NULL) {
printk("No VIA ISA bridge found\n");
PCI_DEVICE_ID_VIA_82C586_1,
NULL)) == NULL) {
printk("No VIA ISA bridge found\n");
@@
-225,6
+225,7
@@
mcpn765_setup_via_82c586b(void)
pci_read_config_byte(dev, 0x40, &c);
c |= 0x03;
pci_write_config_byte(dev, 0x40, c);
pci_read_config_byte(dev, 0x40, &c);
c |= 0x03;
pci_write_config_byte(dev, 0x40, c);
+ pci_dev_put(dev);
return;
}
return;
}