aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/usnic
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2022-06-08 12:46:33 +0100
committerLeon Romanovsky <leonro@nvidia.com>2022-06-16 10:15:29 +0300
commitd56e336e8444970964b6e8d1bd4536f505256c41 (patch)
tree0e72aa23d8422d07fa16b584241608d002c03565 /drivers/infiniband/hw/usnic
parentRDMA/core: Add a netevent notifier to cma (diff)
downloadlinux-dev-d56e336e8444970964b6e8d1bd4536f505256c41.tar.xz
linux-dev-d56e336e8444970964b6e8d1bd4536f505256c41.zip
RDMA/usnic: Use device_iommu_capable()
Use the new interface to check the capability for our device specifically. Link: https://lore.kernel.org/r/96ffe7050da0aa0ad6bce4705c3532f3ecaf32e3.1654688682.git.robin.murphy@arm.com Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/usnic')
-rw-r--r--drivers/infiniband/hw/usnic/usnic_uiom.c2
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 e212929369df..67a1b4562dc2 100644
--- a/drivers/infiniband/hw/usnic/usnic_uiom.c
+++ b/drivers/infiniband/hw/usnic/usnic_uiom.c
@@ -482,7 +482,7 @@ int usnic_uiom_attach_dev_to_pd(struct usnic_uiom_pd *pd, struct device *dev)
if (err)
goto out_free_dev;
- if (!iommu_capable(dev->bus, IOMMU_CAP_CACHE_COHERENCY)) {
+ if (!device_iommu_capable(dev, IOMMU_CAP_CACHE_COHERENCY)) {
usnic_err("IOMMU of %s does not support cache coherency\n",
dev_name(dev));
err = -EINVAL;