Skip to content

Commit

Permalink
ACPI/IORT: Don't call iommu_ops->add_device directly
Browse files Browse the repository at this point in the history
Make sure to invoke this call-back through the proper
function of the IOMMU-API.

Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Dec 17, 2018
1 parent 641fb0e commit d2e1a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/arm64/iort.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
{
int err = 0;

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

return err;
}
Expand Down

0 comments on commit d2e1a00

Please sign in to comment.