Skip to content

Commit

Permalink
iommu/rockchip: : Use standard driver registration
Browse files Browse the repository at this point in the history
It's been a long time since there was any reason to register IOMMU
drivers early. Convert to the standard platform driver helper.

CC: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/c08d58bff340da6a829e76d66d2fa090a9718384.1644005728.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Robin Murphy authored and Joerg Roedel committed Feb 14, 2022
1 parent 754e0b0 commit 6efd3b8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/iommu/rockchip-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,4 @@ static struct platform_driver rk_iommu_driver = {
.suppress_bind_attrs = true,
},
};

static int __init rk_iommu_init(void)
{
return platform_driver_register(&rk_iommu_driver);
}
subsys_initcall(rk_iommu_init);
builtin_platform_driver(rk_iommu_driver);

0 comments on commit 6efd3b8

Please sign in to comment.