diff options
Diffstat (limited to 'drivers/iommu/fsl_pamu_domain.c')
-rw-r--r-- | drivers/iommu/fsl_pamu_domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index c857c30da979..93072ba44b1d 100644 --- a/drivers/iommu/fsl_pamu_domain.c +++ b/drivers/iommu/fsl_pamu_domain.c | |||
@@ -691,7 +691,7 @@ static int fsl_pamu_attach_device(struct iommu_domain *domain, | |||
691 | * Use LIODN of the PCI controller while attaching a | 691 | * Use LIODN of the PCI controller while attaching a |
692 | * PCI device. | 692 | * PCI device. |
693 | */ | 693 | */ |
694 | if (dev->bus == &pci_bus_type) { | 694 | if (dev_is_pci(dev)) { |
695 | pdev = to_pci_dev(dev); | 695 | pdev = to_pci_dev(dev); |
696 | pci_ctl = pci_bus_to_host(pdev->bus); | 696 | pci_ctl = pci_bus_to_host(pdev->bus); |
697 | /* | 697 | /* |
@@ -729,7 +729,7 @@ static void fsl_pamu_detach_device(struct iommu_domain *domain, | |||
729 | * Use LIODN of the PCI controller while detaching a | 729 | * Use LIODN of the PCI controller while detaching a |
730 | * PCI device. | 730 | * PCI device. |
731 | */ | 731 | */ |
732 | if (dev->bus == &pci_bus_type) { | 732 | if (dev_is_pci(dev)) { |
733 | pdev = to_pci_dev(dev); | 733 | pdev = to_pci_dev(dev); |
734 | pci_ctl = pci_bus_to_host(pdev->bus); | 734 | pci_ctl = pci_bus_to_host(pdev->bus); |
735 | /* | 735 | /* |
@@ -1056,7 +1056,7 @@ static int fsl_pamu_add_device(struct device *dev) | |||
1056 | * For platform devices we allocate a separate group for | 1056 | * For platform devices we allocate a separate group for |
1057 | * each of the devices. | 1057 | * each of the devices. |
1058 | */ | 1058 | */ |
1059 | if (dev->bus == &pci_bus_type) { | 1059 | if (dev_is_pci(dev)) { |
1060 | pdev = to_pci_dev(dev); | 1060 | pdev = to_pci_dev(dev); |
1061 | /* Don't create device groups for virtual PCI bridges */ | 1061 | /* Don't create device groups for virtual PCI bridges */ |
1062 | if (pdev->subordinate) | 1062 | if (pdev->subordinate) |