cpufreq: integrator: Fix module autoload for OF platform driver
PATCH 1/1 cpufreq: integrator: Fix module autoload for OF platform driver
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.
---
Hello,
This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.
A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519
Thanks,
Luis
drivers/cpufreq/integrator-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/cpufreq/integrator-cpufreq.c +2 -0
@@ -221,6 +221,8 @@ static const struct of_device_id integrator_cpufreq_match[] = { { }, }; +MODULE_DEVICE_TABLE (of, integrator_cpufreq_match); +static struct platform_driver integrator_cpufreq_driver = { .driver = { .name ="integrator-cpufreq" ,
Signature · 1 line
2.4.6
Quoted 26 lines · Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.
Signed-off-by Luis de Bethencourt <[email protected]>---
Hello,
This patch adds the missing
MODULE_DEVICE_TABLE()for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519Thanks,
Luisdrivers/cpufreq/integrator-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)drivers/cpufreq/integrator-cpufreq.c +0
-0
drivers/cpufreq/integrator-cpufreq.c static const struct of_device_id integrator_cpufreq_match[] = { · line 228
Quoted 8 lines
drivers/cpufreq/integrator-cpufreq.c +2
-0@@ -221,6 +221,8 @@ static const struct of_device_id integrator_cpufreq_match[] = { { }, }; +MODULE_DEVICE_TABLE (of, integrator_cpufreq_match); +static struct platform_driver integrator_cpufreq_driver = { .driver = { .name ="integrator-cpufreq" ,
Signature · 1 line
viresh
Rafael J. Wysocki
AppliedQuoted 30 lines · Viresh Kumar
Quoted 29 lines · Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.
Signed-off-by Luis de Bethencourt <[email protected]>---
Hello,
This patch adds the missing
MODULE_DEVICE_TABLE()for OF to export that information so modules have the correct aliases built-in and autoloading works correctly.A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519Thanks,
Luisdrivers/cpufreq/integrator-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)drivers/cpufreq/integrator-cpufreq.c +0
-0@@ -221,6 +221,8 @@ static const struct of_device_id integrator_cpufreq_match[] = { { }, };
Quoted 7 lines
drivers/cpufreq/integrator-cpufreq.c static const struct of_device_id integrator_cpufreq_match[] = { · line 228
Quoted 5 lines
drivers/cpufreq/integrator-cpufreq.c +2
-0+MODULE_DEVICE_TABLE (of, integrator_cpufreq_match); +static struct platform_driver integrator_cpufreq_driver = { .driver = { .name ="integrator-cpufreq" ,Acked-by Viresh Kumar <[email protected]>
Applied, thanks!
Rafael