[SRU,Bionic,v2,1/5] arm: imx: Add MODULE_ALIAS for cpufreq
diff mbox series

Message ID 20190819034240.6569-2-shrirang.bagul@canonical.com
State New
Headers show
Series
  • Support cpufreq, thermal sensors & cooling cells on iMX6Q based Nitrogen6x board
Related show

Commit Message

Shrirang Bagul Aug. 19, 2019, 3:42 a.m. UTC
From: Nicolas Chauvet <kwizart@gmail.com>

BugLink: https://bugs.launchpad.net/bugs/1840437

Without this, the imx6q-cpufreq driver isn't loaded
automatically when built as a module

Tested on wandboard quad with a fedora 27 kernel rpm

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit d0404738c687c0ecaa7d6b7c5c39e4c0dac791e6)
Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
---
 drivers/cpufreq/imx6q-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index a51eda85ad35..52d63f88dae6 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -478,6 +478,7 @@  static struct platform_driver imx6q_cpufreq_platdrv = {
 };
 module_platform_driver(imx6q_cpufreq_platdrv);
 
+MODULE_ALIAS("platform:imx6q-cpufreq");
 MODULE_AUTHOR("Shawn Guo <shawn.guo@linaro.org>");
 MODULE_DESCRIPTION("Freescale i.MX6Q cpufreq driver");
 MODULE_LICENSE("GPL");