--- zzzz-none-000/linux-5.4.213/drivers/spmi/spmi-pmic-arb.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/spmi/spmi-pmic-arb.c 2024-08-14 09:02:08.000000000 +0000 @@ -1349,7 +1349,18 @@ .of_match_table = spmi_pmic_arb_match_table, }, }; -module_platform_driver(spmi_pmic_arb_driver); + +static int __init spmi_pmic_arb_driver_init(void) +{ + return platform_driver_register(&spmi_pmic_arb_driver); +} +arch_initcall(spmi_pmic_arb_driver_init); + +static void __exit spmi_pmic_arb_driver_exit(void) +{ + platform_driver_unregister(&spmi_pmic_arb_driver); +} +module_exit(spmi_pmic_arb_driver_exit); MODULE_LICENSE("GPL v2"); MODULE_ALIAS("platform:spmi_pmic_arb");