Messages in this thread Patch in this message | | | Date | Wed, 06 Oct 2004 16:29:06 -0700 | From | Hanna Linder <> | Subject | Re: [PATCH 2.6] [3/12] gemini_pci.c replace pci_find_device with pci_get_device |
| |
--On Monday, October 04, 2004 04:55:14 PM -0700 Hanna Linder <hannal@us.ibm.com> wrote:
> As pci_find_device is going away I have replaced this call with pci_get_device. > If someone with a PPC system could verify it I would appreciate it. > > Hanna Linder > IBM Linux Technology Center > > Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Reroll this patch to use new macro
diff -Nrup linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/gemini_pci.c linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/gemini_pci.c --- linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/gemini_pci.c 2004-09-29 20:04:25.000000000 -0700 +++ linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/gemini_pci.c 2004-10-06 16:22:53.979890256 -0700 @@ -15,7 +15,7 @@ void __init gemini_pcibios_fixup(void) int i; struct pci_dev *dev = NULL; - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + for_each_pci_dev(dev) { for(i = 0; i < 6; i++) { if (dev->resource[i].flags & IORESOURCE_IO) { dev->resource[i].start |= (0xfe << 24); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |