Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: ap806: Add missing MODULE_DEVICE_TABLE

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: f525a670533d9 ("cpufreq: ap806: add cpufreq driver for Armada 8K")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Pali Rohár and committed by
Viresh Kumar
925a5bce 2f05c19d

+6
+6
drivers/cpufreq/armada-8k-cpufreq.c
··· 204 204 } 205 205 module_exit(armada_8k_cpufreq_exit); 206 206 207 + static const struct of_device_id __maybe_unused armada_8k_cpufreq_of_match[] = { 208 + { .compatible = "marvell,ap806-cpu-clock" }, 209 + { }, 210 + }; 211 + MODULE_DEVICE_TABLE(of, armada_8k_cpufreq_of_match); 212 + 207 213 MODULE_AUTHOR("Gregory Clement <gregory.clement@bootlin.com>"); 208 214 MODULE_DESCRIPTION("Armada 8K cpufreq driver"); 209 215 MODULE_LICENSE("GPL");