summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-05 19:43:42 +0800
committerJoerg Roedel <joro@8bytes.org>2014-01-07 15:21:45 +0100
commitdbad086433af81513c84678070522455fefebe2a (patch)
tree1b0836ca08e56f56d20631cd6f4d540158f1162f /drivers/iommu
parentd2d1e8fe430c5d26781b14695b05ba46ae8f525b (diff)
downloadlinux-dbad086433af81513c84678070522455fefebe2a.tar.bz2
iommu/vt-d: Use dev_is_pci() to check whether it is pci device
Use PCI standard marco dev_is_pci() instead of directly compare pci_bus_type to check whether it is pci device. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/intel-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 43b9bfea48fa..64d8942d6d14 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -2758,7 +2758,7 @@ static int iommu_no_mapping(struct device *dev)
struct pci_dev *pdev;
int found;
- if (unlikely(dev->bus != &pci_bus_type))
+ if (unlikely(!dev_is_pci(dev)))
return 1;
pdev = to_pci_dev(dev);