summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-05 19:42:41 +0800
committerJoerg Roedel <joro@8bytes.org>2014-01-07 15:21:32 +0100
commitb82a2272b37af1f1f86ee6e5966ad941f9db5dc7 (patch)
tree64f2a6cf0849c0058302a53e862831f1c9edaca4 /drivers/iommu/amd_iommu.c
parentd6e0a2dd12f4067a5bcefb8bbd8ddbeff800afbc (diff)
downloadblackbird-op-linux-b82a2272b37af1f1f86ee6e5966ad941f9db5dc7.tar.gz
blackbird-op-linux-b82a2272b37af1f1f86ee6e5966ad941f9db5dc7.zip
iommu/amd: 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/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 72531f008a5e..faf0da4bb3a2 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -248,8 +248,8 @@ static bool check_device(struct device *dev)
if (!dev || !dev->dma_mask)
return false;
- /* No device or no PCI device */
- if (dev->bus != &pci_bus_type)
+ /* No PCI device */
+ if (!dev_is_pci(dev))
return false;
devid = get_device_id(dev);
OpenPOWER on IntegriCloud