* [PATCH] cpufreq: mediatek-hw: Register to module device table
@ 2023-01-26 15:48 Nícolas F. R. A. Prado
2023-01-27 4:17 ` Viresh Kumar
0 siblings, 1 reply; 2+ messages in thread
From: Nícolas F. R. A. Prado @ 2023-01-26 15:48 UTC (permalink / raw)
To: Viresh Kumar
Cc: AngeloGioacchino Del Regno, kernel, Nícolas F. R. A. Prado,
Matthias Brugger, Rafael J. Wysocki, linux-arm-kernel,
linux-kernel, linux-mediatek, linux-pm
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,
--
2.39.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cpufreq: mediatek-hw: Register to module device table
2023-01-26 15:48 [PATCH] cpufreq: mediatek-hw: Register to module device table Nícolas F. R. A. Prado
@ 2023-01-27 4:17 ` Viresh Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2023-01-27 4:17 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: AngeloGioacchino Del Regno, kernel, Matthias Brugger,
Rafael J. Wysocki, linux-arm-kernel, linux-kernel,
linux-mediatek, linux-pm
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.
--
viresh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-27 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 15:48 [PATCH] cpufreq: mediatek-hw: Register to module device table Nícolas F. R. A. Prado
2023-01-27 4:17 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).