Skip to content

Commit 6b813e0

Browse files
rmurphy-armjoergroedel
authored andcommitted
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 <agross@kernel.org> CC: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/all/05ca5e1b29bdd350f4e20b9ceb031a2c281e23d2.1644005728.git.robin.murphy@arm.com/ Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 754e0b0 commit 6b813e0

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

drivers/iommu/msm_iommu.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -831,16 +831,4 @@ static struct platform_driver msm_iommu_driver = {
831831
.probe = msm_iommu_probe,
832832
.remove = msm_iommu_remove,
833833
};
834-
835-
static int __init msm_iommu_driver_init(void)
836-
{
837-
int ret;
838-
839-
ret = platform_driver_register(&msm_iommu_driver);
840-
if (ret != 0)
841-
pr_err("Failed to register IOMMU driver\n");
842-
843-
return ret;
844-
}
845-
subsys_initcall(msm_iommu_driver_init);
846-
834+
builtin_platform_driver(msm_iommu_driver);

0 commit comments

Comments
 (0)