diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-12-05 15:43:42 +0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2014-01-07 18:21:45 +0400 |
commit | dbad086433af81513c84678070522455fefebe2a (patch) | |
tree | 1b0836ca08e56f56d20631cd6f4d540158f1162f /drivers/iommu | |
parent | d2d1e8fe430c5d26781b14695b05ba46ae8f525b (diff) | |
download | linux-dbad086433af81513c84678070522455fefebe2a.tar.xz |
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.c | 2 |
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); |