diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-05 06:22:27 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-25 09:48:09 -0400 |
commit | 6f952710917cfb801664333a491e4a120451a9ff (patch) | |
tree | 5fa1dbfb72e8fb9d71a885a9b60b36f88cce042e /drivers/infiniband | |
parent | eb165f0584d2c073dd343bdc609e2f94d143037e (diff) |
IB/usnic: Convert to use new iommu_capable() API function
Cc: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_uiom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c index 801a1d6937e4..417de1f32960 100644 --- 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) | |||
507 | if (err) | 507 | if (err) |
508 | goto out_free_dev; | 508 | goto out_free_dev; |
509 | 509 | ||
510 | if (!iommu_domain_has_cap(pd->domain, IOMMU_CAP_CACHE_COHERENCY)) { | 510 | if (!iommu_capable(dev->bus, IOMMU_CAP_CACHE_COHERENCY)) { |
511 | usnic_err("IOMMU of %s does not support cache coherency\n", | 511 | usnic_err("IOMMU of %s does not support cache coherency\n", |
512 | dev_name(dev)); | 512 | dev_name(dev)); |
513 | err = -EINVAL; | 513 | err = -EINVAL; |