Re: [PATCH] PCI fixes for 2.6.10-rc1

Greg KH
2004-11-12T23:41:51Z

ChangeSet 1.2091.1.23, 2004/11/12 14:11:49-08:00, hannal@us.ibm.com

[PATCH] pmac_pci.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I've replaced it with pci_get_device.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

arch/ppc/platforms/pmac_pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Nru a/arch/ppc/platforms/pmac_pci.c b/arch/ppc/platforms/pmac_pci.c
--- a/arch/ppc/platforms/pmac_pci.c 2004-11-12 15:09:11 -08:00
+++ b/arch/ppc/platforms/pmac_pci.c 2004-11-12 15:09:11 -08:00
@@ -889,7 +889,7 @@
* should find the device node and apply the interrupt
* obtained from the OF device-tree
*/
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
struct device_node *node;
node = pci_device_to_OF_node(dev);
/* this is the node, see if it has interrupts */
@@ -989,7 +989,7 @@
*
* -- BenH
*/
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
if ((dev->class >> 16) == PCI_BASE_CLASS_STORAGE)
pci_enable_device(dev);
}