Commit d2e1a003 authored by Joerg Roedel's avatar Joerg Roedel

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: default avatarHanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 641fb0ef
...@@ -806,8 +806,8 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops, ...@@ -806,8 +806,8 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
{ {
int err = 0; int err = 0;
if (ops->add_device && dev->bus && !device_iommu_mapped(dev)) if (dev->bus && !device_iommu_mapped(dev))
err = ops->add_device(dev); err = iommu_probe_device(dev);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment