diff options
author | Joerg Roedel <jroedel@suse.de> | 2018-11-30 15:14:05 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-12-17 12:38:43 +0300 |
commit | 13e6a84d697e8eb8b61a3fe55b4109a666c4851d (patch) | |
tree | 2970d8c8b984d43e423805c6e5e439fe5bf7ef35 /drivers/acpi/arm64 | |
parent | 170ecbd5ff09aa9c8c1025a8563f76e01a24bb50 (diff) | |
download | linux-13e6a84d697e8eb8b61a3fe55b4109a666c4851d.tar.xz |
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>
Diffstat (limited to 'drivers/acpi/arm64')
-rw-r--r-- | drivers/acpi/arm64/iort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 8fbb9d0430cf..c057d3649a2e 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -806,7 +806,7 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops, { 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); return err; |