mirror of https://gitee.com/openkylin/linux.git
x86/amd-iommu: use for_each_pci_dev
Replace open coded version with for_each_pci_dev Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
8f9f55e83e
commit
d18c69d389
|
@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void)
|
|||
struct dma_ops_domain *dma_dom;
|
||||
u16 devid;
|
||||
|
||||
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
|
||||
for_each_pci_dev(dev) {
|
||||
|
||||
/* Do we handle this device? */
|
||||
if (!check_device(&dev->dev))
|
||||
|
|
Loading…
Reference in New Issue