Commit 3b498b66 authored by Robin Murphy's avatar Robin Murphy Committed by Alex Williamson
Browse files

vfio: Use device_iommu_capable()

parent eed20c78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ int vfio_register_group_dev(struct vfio_device *device)
	 * VFIO always sets IOMMU_CACHE because we offer no way for userspace to
	 * restore cache coherency.
	 */
	if (!iommu_capable(device->dev->bus, IOMMU_CAP_CACHE_COHERENCY))
	if (!device_iommu_capable(device->dev, IOMMU_CAP_CACHE_COHERENCY))
		return -EINVAL;

	return __vfio_register_dev(device,