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>
This commit is contained in:
parent
0e3c498d45
commit
f19dd2c243
@ -237,17 +237,7 @@ static struct platform_driver video_cc_sc7180_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init video_cc_sc7180_init(void)
|
||||
{
|
||||
return platform_driver_register(&video_cc_sc7180_driver);
|
||||
}
|
||||
subsys_initcall(video_cc_sc7180_init);
|
||||
|
||||
static void __exit video_cc_sc7180_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&video_cc_sc7180_driver);
|
||||
}
|
||||
module_exit(video_cc_sc7180_exit);
|
||||
module_platform_driver(video_cc_sc7180_driver);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("QTI VIDEOCC SC7180 Driver");
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -277,17 +277,7 @@ static struct platform_driver video_cc_sm8150_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init video_cc_sm8150_init(void)
|
||||
{
|
||||
return platform_driver_register(&video_cc_sm8150_driver);
|
||||
}
|
||||
subsys_initcall(video_cc_sm8150_init);
|
||||
|
||||
static void __exit video_cc_sm8150_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&video_cc_sm8150_driver);
|
||||
}
|
||||
module_exit(video_cc_sm8150_exit);
|
||||
module_platform_driver(video_cc_sm8150_driver);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("QTI VIDEOCC SM8150 Driver");
|
||||
|
@ -402,17 +402,7 @@ static struct platform_driver video_cc_sm8250_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init video_cc_sm8250_init(void)
|
||||
{
|
||||
return platform_driver_register(&video_cc_sm8250_driver);
|
||||
}
|
||||
subsys_initcall(video_cc_sm8250_init);
|
||||
|
||||
static void __exit video_cc_sm8250_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&video_cc_sm8250_driver);
|
||||
}
|
||||
module_exit(video_cc_sm8250_exit);
|
||||
module_platform_driver(video_cc_sm8250_driver);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("QTI VIDEOCC SM8250 Driver");
|
||||
|
@ -448,17 +448,7 @@ static struct platform_driver video_cc_sm8450_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init video_cc_sm8450_init(void)
|
||||
{
|
||||
return platform_driver_register(&video_cc_sm8450_driver);
|
||||
}
|
||||
subsys_initcall(video_cc_sm8450_init);
|
||||
|
||||
static void __exit video_cc_sm8450_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&video_cc_sm8450_driver);
|
||||
}
|
||||
module_exit(video_cc_sm8450_exit);
|
||||
module_platform_driver(video_cc_sm8450_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QTI VIDEOCC SM8450 Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -453,17 +453,7 @@ static struct platform_driver video_cc_sm8550_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init video_cc_sm8550_init(void)
|
||||
{
|
||||
return platform_driver_register(&video_cc_sm8550_driver);
|
||||
}
|
||||
subsys_initcall(video_cc_sm8550_init);
|
||||
|
||||
static void __exit video_cc_sm8550_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&video_cc_sm8550_driver);
|
||||
}
|
||||
module_exit(video_cc_sm8550_exit);
|
||||
module_platform_driver(video_cc_sm8550_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QTI VIDEOCC SM8550 Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Loading…
Reference in New Issue
Block a user