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-sc7280.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-sc7280.c')
-rw-r--r-- | drivers/clk/qcom/videocc-sc7280.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clk/qcom/videocc-sc7280.c b/drivers/clk/qcom/videocc-sc7280.c index 615695d82319..cdd59c6f60df 100644 --- a/drivers/clk/qcom/videocc-sc7280.c +++ b/drivers/clk/qcom/videocc-sc7280.c @@ -309,17 +309,7 @@ static struct platform_driver video_cc_sc7280_driver = { }, }; -static int __init video_cc_sc7280_init(void) -{ - return platform_driver_register(&video_cc_sc7280_driver); -} -subsys_initcall(video_cc_sc7280_init); - -static void __exit video_cc_sc7280_exit(void) -{ - platform_driver_unregister(&video_cc_sc7280_driver); -} -module_exit(video_cc_sc7280_exit); +module_platform_driver(video_cc_sc7280_driver); MODULE_DESCRIPTION("QTI VIDEO_CC sc7280 Driver"); MODULE_LICENSE("GPL v2"); |