Browse Source

hwmon: (abx500) 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 <luisbg@osg.samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Luis de Bethencourt 10 years ago
parent
commit
3245acbce9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/hwmon/abx500.c

+ 1 - 0
drivers/hwmon/abx500.c

@@ -470,6 +470,7 @@ static const struct of_device_id abx500_temp_match[] = {
 	{ .compatible = "stericsson,abx500-temp" },
 	{ .compatible = "stericsson,abx500-temp" },
 	{},
 	{},
 };
 };
+MODULE_DEVICE_TABLE(of, abx500_temp_match);
 #endif
 #endif
 
 
 static struct platform_driver abx500_temp_driver = {
 static struct platform_driver abx500_temp_driver = {