Re: [PATCH] PCI fixes for 2.6.10-rc1

Greg KH
2004-11-13T00:55:24Z

ChangeSet 1.2091.1.18, 2004/11/12 14:10:03-08:00, hannal@us.ibm.com

[PATCH] fixups-dreamcast.c: replace pci_find_device with pci_get_device

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

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

arch/sh/drivers/pci/fixups-dreamcast.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/arch/sh/drivers/pci/fixups-dreamcast.c b/arch/sh/drivers/pci/fixups-dreamcast.c
--- a/arch/sh/drivers/pci/fixups-dreamcast.c 2004-11-12 15:09:49 -08:00
+++ b/arch/sh/drivers/pci/fixups-dreamcast.c 2004-11-12 15:09:49 -08:00
@@ -62,7 +62,7 @@
{
struct pci_dev *dev = 0;

- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
/*
* The interrupt routing semantics here are quite trivial.
*