diff mbox series

cpufreq: mediatek-hw: Register to module device table

Message ID 20230126154856.1322193-1-nfraprado@collabora.com (mailing list archive)
State New, archived
Headers show
Series cpufreq: mediatek-hw: Register to module device table | expand

Commit Message

Nícolas F. R. A. Prado Jan. 26, 2023, 3:48 p.m. UTC
Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

---

 drivers/cpufreq/mediatek-cpufreq-hw.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Viresh Kumar Jan. 27, 2023, 4:17 a.m. UTC | #1
On 26-01-23, 10:48, Nícolas F. R. A. Prado wrote:
> Register the compatibles for this module on the module device table so
> it can be automatically loaded when a matching device is found on the
> system.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> 
> ---
> 
>  drivers/cpufreq/mediatek-cpufreq-hw.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c
> index f80339779084..115b0eda38c1 100644
> --- a/drivers/cpufreq/mediatek-cpufreq-hw.c
> +++ b/drivers/cpufreq/mediatek-cpufreq-hw.c
> @@ -324,6 +324,7 @@ static const struct of_device_id mtk_cpufreq_hw_match[] = {
>  	{ .compatible = "mediatek,cpufreq-hw", .data = &cpufreq_mtk_offsets },
>  	{}
>  };
> +MODULE_DEVICE_TABLE(of, mtk_cpufreq_hw_match);
>  
>  static struct platform_driver mtk_cpufreq_hw_driver = {
>  	.probe = mtk_cpufreq_hw_driver_probe,

Applied. Thanks.
diff mbox series

Patch

diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c
index f80339779084..115b0eda38c1 100644
--- a/drivers/cpufreq/mediatek-cpufreq-hw.c
+++ b/drivers/cpufreq/mediatek-cpufreq-hw.c
@@ -324,6 +324,7 @@  static const struct of_device_id mtk_cpufreq_hw_match[] = {
 	{ .compatible = "mediatek,cpufreq-hw", .data = &cpufreq_mtk_offsets },
 	{}
 };
+MODULE_DEVICE_TABLE(of, mtk_cpufreq_hw_match);
 
 static struct platform_driver mtk_cpufreq_hw_driver = {
 	.probe = mtk_cpufreq_hw_driver_probe,