diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-02-06 18:25:15 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-02-07 21:14:48 +0300 |
commit | f19dd2c243de379f4806d757455786743c256269 (patch) | |
tree | 44d00e3849f1419f5bfcf67ba416675310fda5bd /drivers/clk/qcom/videocc-sdm845.c | |
parent | 0e3c498d45b94a568b31a9d94a5fcf6eee1368d7 (diff) | |
download | linux-f19dd2c243de379f4806d757455786743c256269.tar.xz |
clk: qcom: videocc-*: switch to module_platform_driver
There is no need to register video clock controllers during subsys init
calls. Use module_platform_driver() instead.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240206-clk-module-platform-driver-v1-4-db799bd2feeb@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/videocc-sdm845.c')
-rw-r--r-- | drivers/clk/qcom/videocc-sdm845.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clk/qcom/videocc-sdm845.c b/drivers/clk/qcom/videocc-sdm845.c index c77a4dd5d39c..b7f21ecad961 100644 --- a/drivers/clk/qcom/videocc-sdm845.c +++ b/drivers/clk/qcom/videocc-sdm845.c @@ -340,16 +340,6 @@ static struct platform_driver video_cc_sdm845_driver = { }, }; -static int __init video_cc_sdm845_init(void) -{ - return platform_driver_register(&video_cc_sdm845_driver); -} -subsys_initcall(video_cc_sdm845_init); - -static void __exit video_cc_sdm845_exit(void) -{ - platform_driver_unregister(&video_cc_sdm845_driver); -} -module_exit(video_cc_sdm845_exit); +module_platform_driver(video_cc_sdm845_driver); MODULE_LICENSE("GPL v2"); |