--On Monday, January 10, 2005 02:21:56 PM -0700 Bjorn Helgaas <bjorn.helgaas@hp.com> wrote: > On Mon, 2005-01-10 at 13:09 -0800, Jesse Barnes wrote: >> On Monday, January 10, 2005 11:46 am, domen@coderock.org wrote: >> > - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) >> > + while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) >> > acpi_pci_irq_enable(dev); >> >> Shouldn't this be for_each_pci_dev(dev) acpi_pci_irq_enable(dev); instead? >> Bjorn? > > They're equivalent, right? Looks OK to me either way. I guess > if you switch to for_each_pci_dev(), you could switch the one > in sba_iommu.c, too. Here is the reroll of the sba_iommu.c patch to use for_each_pci_dev. Signed-off-by: Hanna Linder <hannal@us.ibm.com> diff -Nrup linux-2.6.10cln/arch/ia64/hp/common/sba_iommu.c linux-2.6.10p2/arch/ia64/hp/common/sba_iommu.c --- linux-2.6.10cln/arch/ia64/hp/common/sba_iommu.c 2005-01-10 15:45:15.000000000 -0800 +++ linux-2.6.10p2/arch/ia64/hp/common/sba_iommu.c 2005-01-10 15:51:33.602913864 -0800 @@ -1557,7 +1557,7 @@ ioc_iova_init(struct ioc *ioc) ** We program the next pdir index after we stop w/ a key for ** the GART code to handshake on. */ - while ((device = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, device)) != NULL) + for_each_pci_dev(device) agp_found |= pci_find_capability(device, PCI_CAP_ID_AGP); if (agp_found && reserve_sba_gart) { - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Mon Jan 10 19:38:25 2005
This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST