Skip to content

Commit d2e1a00

Browse files
committed
ACPI/IORT: Don't call iommu_ops->add_device directly
Make sure to invoke this call-back through the proper function of the IOMMU-API. Acked-by: Hanjun Guo <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 641fb0e commit d2e1a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/arm64/iort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
806806
{
807807
int err = 0;
808808

809-
if (ops->add_device && dev->bus && !device_iommu_mapped(dev))
810-
err = ops->add_device(dev);
809+
if (dev->bus && !device_iommu_mapped(dev))
810+
err = iommu_probe_device(dev);
811811

812812
return err;
813813
}

0 commit comments

Comments
 (0)