diff mbox series

cpufreq: tegra194: Fix module loading

Message ID 20221011153243.133712-1-jonathanh@nvidia.com (mailing list archive)
State New, archived
Delegated to: viresh kumar
Headers show
Series cpufreq: tegra194: Fix module loading | expand

Commit Message

Jon Hunter Oct. 11, 2022, 3:32 p.m. UTC
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(+)

Comments

Viresh Kumar Oct. 12, 2022, 3:07 a.m. UTC | #1
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.
diff mbox series

Patch

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 = {