Skip to content

Commit 641fb0e

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/iommu/of_iommu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ const struct iommu_ops *of_iommu_configure(struct device *dev,
222222
}
223223
/*
224224
* If we have reason to believe the IOMMU driver missed the initial
225-
* add_device callback for dev, replay it to get things in order.
225+
* probe for dev, replay it to get things in order.
226226
*/
227-
if (ops && ops->add_device && dev->bus && !device_iommu_mapped(dev))
228-
err = ops->add_device(dev);
227+
if (dev->bus && !device_iommu_mapped(dev))
228+
err = iommu_probe_device(dev);
229229

230230
/* Ignore all other errors apart from EPROBE_DEFER */
231231
if (err == -EPROBE_DEFER) {

0 commit comments

Comments
 (0)