cpufreq: tegra194: Fix module loading
Subsystems (2)
Jon Hunter
maintainerPATCH 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")
Signed-off-by Jon Hunter <[email protected]>
--- drivers/cpufreq/tegra194-cpufreq.c | 1 + 1 file changed, 1 insertion(+)
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 = {
Signature · 1 line
2.25.1
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_TABLEto fix this.Fixes df320f89359c ("cpufreq: Add Tegra194 cpufreq driver")
Added:
Cc: v5.9+ <[email protected]> # v5.9+
Quoted 10 lines
Signed-off-by Jon Hunter <[email protected]>--- drivers/cpufreq/tegra194-cpufreq.c | 1 + 1 file changed, 1 insertion(+)drivers/cpufreq/tegra194-cpufreq.c +0
-0
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