diff options
author | Joerg Roedel <jroedel@suse.de> | 2018-12-05 14:39:45 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-12-17 12:47:51 +0100 |
commit | d2e1a003af569e912d5f115a3c20b89a19f5caa0 (patch) | |
tree | 5dae4788ecf6b8dcce8e6967df0f95a4cd9af6d7 | |
parent | 641fb0efbff063ed57f108c2eb4a4d26dbd5badd (diff) |
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 <hanjun.guo@linaro.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/acpi/arm64/iort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index c057d3649a2e..ec248c067f6d 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -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; } |