Skip to contentSkip to conversation

cpufreq: integrator: Fix module autoload for OF platform driver

PATCH Applied Luis de Bethencourt 3 participants 3 messages Sep 16, 2015 – Oct 5, 2015 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

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
index 2faa421..79e3ff2 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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.

---

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 +0 -0
index 2faa421..79e3ff2 100644

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
#2 lore raw
Quoted 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.

---

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 +0 -0
index 2faa421..79e3ff2 100644
@@ -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",

Applied, thanks!

Rafael