projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e0a2d
)
iommu/amd: Use dev_is_pci() to check whether it is pci device
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 5 Dec 2013 11:42:41 +0000
(19:42 +0800)
committer
Joerg Roedel
<joro@8bytes.org>
Tue, 7 Jan 2014 14:21:32 +0000
(15:21 +0100)
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>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 72531f008a5e34ea871e7d3d3569a724af695d86..faf0da4bb3a2f84bfd69c911d8de100028b25b7e 100644
(file)
--- 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);
This page took
0.025868 seconds
and
5
git commands to generate.