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
/
sparc
/
kernel
/
ebus.c
diff --git
a/arch/sparc/kernel/ebus.c
b/arch/sparc/kernel/ebus.c
index
8ae7e5d
..
1754192
100644
(file)
--- a/
arch/sparc/kernel/ebus.c
+++ b/
arch/sparc/kernel/ebus.c
@@
-275,7
+275,7
@@
void __init ebus_init(void)
}
}
}
}
- pdev = pci_
find
_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, 0);
+ pdev = pci_
get
_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, 0);
if (!pdev) {
return;
}
if (!pdev) {
return;
}
@@
-342,7
+342,7
@@
void __init ebus_init(void)
}
next_ebus:
}
next_ebus:
- pdev = pci_
find
_device(PCI_VENDOR_ID_SUN,
+ pdev = pci_
get
_device(PCI_VENDOR_ID_SUN,
PCI_DEVICE_ID_SUN_EBUS, pdev);
if (!pdev)
break;
PCI_DEVICE_ID_SUN_EBUS, pdev);
if (!pdev)
break;
@@
-356,4
+356,6
@@
void __init ebus_init(void)
ebus->next = 0;
++num_ebus;
}
ebus->next = 0;
++num_ebus;
}
+ if (pdev)
+ pci_dev_put(pdev);
}
}