aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/tegra194-cpufreq.c
diff options
context:
space:
mode:
authorGravatar Jon Hunter <jonathanh@nvidia.com> 2022-10-11 16:32:43 +0100
committerGravatar Viresh Kumar <viresh.kumar@linaro.org> 2022-10-18 16:22:25 +0530
commit1dcaf30725c32b26daa70d22083999972ab99c29 (patch)
tree1865a62a6d9ebd860ee1c911354c700500c89946 /drivers/cpufreq/tegra194-cpufreq.c
parentLinux 6.1-rc1 (diff)
downloadlinux-1dcaf30725c32b26daa70d22083999972ab99c29.tar.gz
linux-1dcaf30725c32b26daa70d22083999972ab99c29.tar.bz2
linux-1dcaf30725c32b26daa70d22083999972ab99c29.zip
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. Cc: v5.9+ <stable@vger.kernel.org> # v5.9+ Fixes: df320f89359c ("cpufreq: Add Tegra194 cpufreq driver") Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/tegra194-cpufreq.c')
-rw-r--r--drivers/cpufreq/tegra194-cpufreq.c1
1 files changed, 1 insertions, 0 deletions
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 = {