Browse Source

thermal: db8500_cpufreq_cooling: 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.

Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Luis de Bethencourt 10 years ago
parent
commit
0847e26a84
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/thermal/db8500_cpufreq_cooling.c

+ 1 - 0
drivers/thermal/db8500_cpufreq_cooling.c

@@ -72,6 +72,7 @@ static const struct of_device_id db8500_cpufreq_cooling_match[] = {
 	{ .compatible = "stericsson,db8500-cpufreq-cooling" },
 	{ .compatible = "stericsson,db8500-cpufreq-cooling" },
 	{},
 	{},
 };
 };
+MODULE_DEVICE_TABLE(of, db8500_cpufreq_cooling_match);
 #endif
 #endif
 
 
 static struct platform_driver db8500_cpufreq_cooling_driver = {
 static struct platform_driver db8500_cpufreq_cooling_driver = {