summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-11-03 16:11:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-30 11:53:38 +0100
commit60b517181a6ef6c5283d43332a9370ae4b792a16 (patch)
treed5cabf857b549f40c61ccdd06d8b7e7627db6240 /drivers/cpufreq
parentb15fcc3a31c4f249793c4b0e7f4adfb45df35171 (diff)
downloadlinux-stable-60b517181a6ef6c5283d43332a9370ae4b792a16.tar.gz
linux-stable-60b517181a6ef6c5283d43332a9370ae4b792a16.tar.bz2
linux-stable-60b517181a6ef6c5283d43332a9370ae4b792a16.zip
cpufreq: sun50i: Add missing MODULE_DEVICE_TABLE
[ Upstream commit af2096f285077e3339eb835ad06c50bdd59f01b5 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár <pali@kernel.org> Fixes: f328584f7bff8 ("cpufreq: Add sun50i nvmem based CPU scaling driver") Reviewed-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/sun50i-cpufreq-nvmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c
index 9907a165135b..2deed8d8773f 100644
--- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c
+++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c
@@ -167,6 +167,7 @@ static const struct of_device_id sun50i_cpufreq_match_list[] = {
{ .compatible = "allwinner,sun50i-h6" },
{}
};
+MODULE_DEVICE_TABLE(of, sun50i_cpufreq_match_list);
static const struct of_device_id *sun50i_cpufreq_match_node(void)
{