summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/arm64
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2018-11-30 13:14:05 +0100
committerJoerg Roedel <jroedel@suse.de>2018-12-17 10:38:43 +0100
commit13e6a84d697e8eb8b61a3fe55b4109a666c4851d (patch)
tree2970d8c8b984d43e423805c6e5e439fe5bf7ef35 /drivers/acpi/arm64
parent170ecbd5ff09aa9c8c1025a8563f76e01a24bb50 (diff)
downloadlinux-stable-13e6a84d697e8eb8b61a3fe55b4109a666c4851d.tar.gz
linux-stable-13e6a84d697e8eb8b61a3fe55b4109a666c4851d.tar.bz2
linux-stable-13e6a84d697e8eb8b61a3fe55b4109a666c4851d.zip
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.c2
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;