OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb165f0
)
IB/usnic: Convert to use new iommu_capable() API function
author
Joerg Roedel
<jroedel@suse.de>
Fri, 5 Sep 2014 10:22:27 +0000
(12:22 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 25 Sep 2014 13:48:09 +0000
(15:48 +0200)
Cc: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/infiniband/hw/usnic/usnic_uiom.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/usnic/usnic_uiom.c
b/drivers/infiniband/hw/usnic/usnic_uiom.c
index
801a1d6
..
417de1f
100644
(file)
--- a/
drivers/infiniband/hw/usnic/usnic_uiom.c
+++ b/
drivers/infiniband/hw/usnic/usnic_uiom.c
@@
-507,7
+507,7
@@
int usnic_uiom_attach_dev_to_pd(struct usnic_uiom_pd *pd, struct device *dev)
if (err)
goto out_free_dev;
- if (!iommu_
domain_has_cap(pd->domain
, IOMMU_CAP_CACHE_COHERENCY)) {
+ if (!iommu_
capable(dev->bus
, IOMMU_CAP_CACHE_COHERENCY)) {
usnic_err("IOMMU of %s does not support cache coherency\n",
dev_name(dev));
err = -EINVAL;