From de8a4a79583bbc79be8f3cf83673ba09ad080047 Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Tue, 24 May 2022 14:57:25 +0800 Subject: [PATCH] soc: rockchip: Call rockchip_iodomain_driver_init() early The iodomain driver has been moved into soc/rockchip and it needs to be called early before devices, set fs_initcall to it. Change-Id: I68756377411299e3a4bacbae462ae18b8c31c072 Signed-off-by: Tao Huang Signed-off-by: Jianqun Xu --- drivers/soc/rockchip/io-domain.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c index bae071eb83fb..ad5fc6649969 100644 --- a/drivers/soc/rockchip/io-domain.c +++ b/drivers/soc/rockchip/io-domain.c @@ -906,7 +906,17 @@ static struct platform_driver rockchip_iodomain_driver = { }, }; -module_platform_driver(rockchip_iodomain_driver); +static int __init rockchip_iodomain_driver_init(void) +{ + return platform_driver_register(&rockchip_iodomain_driver); +} +fs_initcall(rockchip_iodomain_driver_init); + +static void __exit rockchip_iodomain_driver_exit(void) +{ + platform_driver_unregister(&rockchip_iodomain_driver); +} +module_exit(rockchip_iodomain_driver_exit); MODULE_DESCRIPTION("Rockchip IO-domain driver"); MODULE_AUTHOR("Heiko Stuebner ");