projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641fb0e
)
ACPI/IORT: Don't call iommu_ops->add_device directly
author
Joerg Roedel
<jroedel@suse.de>
Wed, 5 Dec 2018 13:39:45 +0000
(14:39 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 17 Dec 2018 11:47:51 +0000
(12:47 +0100)
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>
drivers/acpi/arm64/iort.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/arm64/iort.c
b/drivers/acpi/arm64/iort.c
index
c057d36
..
ec248c0
100644
(file)
--- 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;
}