diff mbox

arm: imx: Add MODULE_ALIAS for cpufreq

Message ID 20180130095526.9478-1-kwizart@gmail.com (mailing list archive)
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

Nicolas Chauvet Jan. 30, 2018, 9:55 a.m. UTC
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>
---
 drivers/cpufreq/imx6q-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Viresh Kumar Jan. 30, 2018, 3:20 p.m. UTC | #1
On 30-01-18, 10:55, Nicolas Chauvet wrote:
> 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>
> ---
>  drivers/cpufreq/imx6q-cpufreq.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
> index d9b2c2de49c4..cef3d46fd642 100644
> --- a/drivers/cpufreq/imx6q-cpufreq.c
> +++ b/drivers/cpufreq/imx6q-cpufreq.c
> @@ -473,6 +473,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");

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Rafael J. Wysocki Feb. 8, 2018, 10:13 a.m. UTC | #2
On Tuesday, January 30, 2018 4:20:08 PM CET Viresh Kumar wrote:
> On 30-01-18, 10:55, Nicolas Chauvet wrote:
> > 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>
> > ---
> >  drivers/cpufreq/imx6q-cpufreq.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
> > index d9b2c2de49c4..cef3d46fd642 100644
> > --- a/drivers/cpufreq/imx6q-cpufreq.c
> > +++ b/drivers/cpufreq/imx6q-cpufreq.c
> > @@ -473,6 +473,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");
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> 

Patch applied, thanks!
diff mbox

Patch

diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index d9b2c2de49c4..cef3d46fd642 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -473,6 +473,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");