mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
IB/usnic: Convert to use new iommu_capable() API function
Cc: Upinder Malhi <umalhi@cisco.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
eb165f0584
commit
6f95271091
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ int usnic_uiom_attach_dev_to_pd(struct usnic_uiom_pd *pd, struct device *dev)
|
||||||
if (err)
|
if (err)
|
||||||
goto out_free_dev;
|
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",
|
usnic_err("IOMMU of %s does not support cache coherency\n",
|
||||||
dev_name(dev));
|
dev_name(dev));
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue