aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2022-02-04 20:16:40 +0000
committerJoerg Roedel <[email protected]>2022-02-14 14:15:28 +0100
commit6b813e0e48d77bc026aaea6683fc6e74f5695ab4 (patch)
treec63d0f8e8b3d231c9486e7e0579a632369a10e55
parent754e0b0e35608ed5206d6a67a791563c631cec07 (diff)
iommu/msm: Use standard driver registration
It's been a long time since there was any reason to register IOMMU drivers early. Convert to the standard platform driver helper. CC: Andy Gross <[email protected]> CC: Bjorn Andersson <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/all/05ca5e1b29bdd350f4e20b9ceb031a2c281e23d2.1644005728.git.robin.murphy@arm.com/ Signed-off-by: Joerg Roedel <[email protected]>
-rw-r--r--drivers/iommu/msm_iommu.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c
index 3a38352b603f..06bde6b66732 100644
--- a/drivers/iommu/msm_iommu.c
+++ b/drivers/iommu/msm_iommu.c
@@ -831,16 +831,4 @@ static struct platform_driver msm_iommu_driver = {
.probe = msm_iommu_probe,
.remove = msm_iommu_remove,
};
-
-static int __init msm_iommu_driver_init(void)
-{
- int ret;
-
- ret = platform_driver_register(&msm_iommu_driver);
- if (ret != 0)
- pr_err("Failed to register IOMMU driver\n");
-
- return ret;
-}
-subsys_initcall(msm_iommu_driver_init);
-
+builtin_platform_driver(msm_iommu_driver);