public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: tegra194: Fix module loading
@ 2022-10-11 15:32 Jon Hunter
  2022-10-12  3:07 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2022-10-11 15:32 UTC (permalink / raw)
  To: Rafael J . Wysocki, Viresh Kumar, Thierry Reding
  Cc: linux-pm, linux-tegra, Jon Hunter

When the Tegra194 CPUFREQ driver is built as a module it is not
automatically loaded as expected on Tegra194 devices. Populate the
MODULE_DEVICE_TABLE to fix this.

Fixes: df320f89359c ("cpufreq: Add Tegra194 cpufreq driver")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 drivers/cpufreq/tegra194-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
index c2004cae3f02..4596c3e323aa 100644
--- a/drivers/cpufreq/tegra194-cpufreq.c
+++ b/drivers/cpufreq/tegra194-cpufreq.c
@@ -589,6 +589,7 @@ static const struct of_device_id tegra194_cpufreq_of_match[] = {
 	{ .compatible = "nvidia,tegra239-ccplex-cluster", .data = &tegra239_cpufreq_soc },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, tegra194_cpufreq_of_match);
 
 static struct platform_driver tegra194_ccplex_driver = {
 	.driver = {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: tegra194: Fix module loading
  2022-10-11 15:32 [PATCH] cpufreq: tegra194: Fix module loading Jon Hunter
@ 2022-10-12  3:07 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2022-10-12  3:07 UTC (permalink / raw)
  To: Jon Hunter; +Cc: Rafael J . Wysocki, Thierry Reding, linux-pm, linux-tegra

On 11-10-22, 16:32, Jon Hunter wrote:
> When the Tegra194 CPUFREQ driver is built as a module it is not
> automatically loaded as expected on Tegra194 devices. Populate the
> MODULE_DEVICE_TABLE to fix this.
> 
> Fixes: df320f89359c ("cpufreq: Add Tegra194 cpufreq driver")

Added:

    Cc: v5.9+ <stable@vger.kernel.org> # v5.9+

> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  drivers/cpufreq/tegra194-cpufreq.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
> index c2004cae3f02..4596c3e323aa 100644
> --- a/drivers/cpufreq/tegra194-cpufreq.c
> +++ b/drivers/cpufreq/tegra194-cpufreq.c
> @@ -589,6 +589,7 @@ static const struct of_device_id tegra194_cpufreq_of_match[] = {
>  	{ .compatible = "nvidia,tegra239-ccplex-cluster", .data = &tegra239_cpufreq_soc },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, tegra194_cpufreq_of_match);
>  
>  static struct platform_driver tegra194_ccplex_driver = {
>  	.driver = {

Applied. Thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-12  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-11 15:32 [PATCH] cpufreq: tegra194: Fix module loading Jon Hunter
2022-10-12  3:07 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox