Re: [PATCH 2.6] pSeries_iommu.c replace pci_find_device with pci_get_device

From: Hanna Linder
Date: Fri Oct 08 2004 - 13:28:11 EST


--On Friday, October 08, 2004 10:40:19 AM -0700 Hanna Linder <hannal@xxxxxxxxxx> wrote:

> As pci_find_device is going away I've replaced it with pci_get_device.
> 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@xxxxxxxxxx>

Ooops. Included the wrong patch. Should be:

diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_iommu.c linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/pSeries_iommu.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_iommu.c 2004-09-29 20:04:16.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/pSeries_iommu.c 2004-10-08 10:22:35.448365008 -0700
@@ -427,7 +427,7 @@ void iommu_setup_pSeries(void)
* pci device_node. This means get_iommu_table() won't need to search
* up the device tree to find it.
*/
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
mydn = dn = PCI_GET_DN(dev);

while (dn && dn->iommu_table == NULL)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/