Messages in this thread Patch in this message | | | Date | Fri, 08 Oct 2004 13:17:19 -0700 | From | Hanna Linder <> | Subject | [PATCH 2.6] u3_iommu.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. If someone with a PPC64 system could test it I would appreciate it.
Thanks.
Hanna Linder IBM Linux Technology Center
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
--- diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c --- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c 2004-09-29 20:05:52.000000000 -0700 +++ linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c 2004-10-08 13:10:06.883314632 -0700 @@ -290,7 +290,7 @@ void iommu_setup_u3(void) /* We only have one iommu table on the mac for now, which makes * things simple. Setup all PCI devices to point to this table */ - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + for_each_pci_dev(dev) { /* We must use pci_device_to_OF_node() to make sure that * we get the real "final" pointer to the device in the * pci_dev sysdata and not the temporary PHB one
- 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/
| |