ACPI/IORT: Use device_iommu_mapped()

Replace the iommu-check with a proper and readable function
call.

Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Joerg Roedel 2018-11-30 13:14:05 +01:00
parent 170ecbd5ff
commit 13e6a84d69
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
{ {
int err = 0; int err = 0;
if (ops->add_device && dev->bus && !dev->iommu_group) if (ops->add_device && dev->bus && !device_iommu_mapped(dev))
err = ops->add_device(dev); err = ops->add_device(dev);
return err; return err;