]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/omap: Register driver before setting IOMMU ops
authorSuman Anna <s-anna@ti.com>
Wed, 12 Apr 2017 05:21:26 +0000 (00:21 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 20 Apr 2017 14:33:58 +0000 (16:33 +0200)
commitabaa7e5b054aae567861628b74dbc7fbf8ed79e8
tree34672d30cc55881a7d22c20a1ae8f66326ba053d
parenta71c9a1c779f2499fb2afc0553e543f18aff6edf
iommu/omap: Register driver before setting IOMMU ops

Move the registration of the OMAP IOMMU platform driver before
setting the IOMMU callbacks on the platform bus. This causes
the IOMMU devices to be probed first before the .add_device()
callback is invoked for all registered devices, and allows
the iommu_group support to be added to the OMAP IOMMU driver.

While at this, also check for the return status from bus_set_iommu.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c