Skip to contentSkip to conversation

cpufreq: tegra194: Fix module loading

PATCH Applied Jon Hunter 2 participants 2 messages Oct 11, 2022 – Oct 12, 2022

Subsystems (2)
lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

PATCH 1/1 cpufreq: tegra194: Fix module loading

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")
---
 drivers/cpufreq/tegra194-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/tegra194-cpufreq.c +1 -0
index c2004cae3f02..4596c3e323aa 100644
@@ -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 = {
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 5 lines · 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")

Added:

    Cc: v5.9+ <[email protected]> # v5.9+
Quoted 10 lines
---
 drivers/cpufreq/tegra194-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/tegra194-cpufreq.c +0 -0
index c2004cae3f02..4596c3e323aa 100644

drivers/cpufreq/tegra194-cpufreq.c static const struct of_device_id tegra194_cpufreq_of_match[] = { · line 595

Quoted 7 lines
drivers/cpufreq/tegra194-cpufreq.c +1 -0
@@ -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.

Signature · 1 line
viresh