Commit 4783ee04 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Tony Luck

[IA64] sba_iommu.c: pci_find_device is going away

Here is the reroll of the sba_iommu.c patch to use for_each_pci_dev.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent d40e211f
...@@ -1557,7 +1557,7 @@ ioc_iova_init(struct ioc *ioc) ...@@ -1557,7 +1557,7 @@ ioc_iova_init(struct ioc *ioc)
** We program the next pdir index after we stop w/ a key for ** We program the next pdir index after we stop w/ a key for
** the GART code to handshake on. ** 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); agp_found |= pci_find_capability(device, PCI_CAP_ID_AGP);
if (agp_found && reserve_sba_gart) { if (agp_found && reserve_sba_gart) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment