Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13e6a84d authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarRobin Murphy <robin.murphy@arm.com>
Acked-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 170ecbd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;