iommu/msm: Use platform_register/unregister_drivers()
authorThierry Reding <treding@nvidia.com>
Wed, 2 Dec 2015 16:26:01 +0000 (17:26 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Dec 2015 14:51:21 +0000 (15:51 +0100)
commite7479a1907dbb9761cef2ad0c94c6d3ba03d3013
tree7b4432da2ea7a3f77b1242f201f2d3337b8da651
parent9f9499ae8e6415cefc4fe0a96ad0e27864353c89
iommu/msm: Use platform_register/unregister_drivers()

These new helpers simplify implementing multi-driver modules and
properly handle failure to register one driver by unregistering all
previously registered drivers.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/msm_iommu_dev.c