summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-17 18:09:55 +0200
committerGuenter Roeck <linux@roeck-us.net>2015-09-21 02:50:19 +0200
commitf491e70ccffa5d19aa51c958909320fa1f3905ed (patch)
tree7c30c203a5f03731cff65170dbcbd54a544f3503
parenthwmon: (gpio-fan) Fix module autoload for OF platform driver (diff)
downloadlinux-f491e70ccffa5d19aa51c958909320fa1f3905ed.tar.xz
linux-f491e70ccffa5d19aa51c958909320fa1f3905ed.zip
hwmon: (pwm-fan) 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>
-rw-r--r--drivers/hwmon/pwm-fan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index 2d9a712699ff..3e23003f78b0 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -323,6 +323,7 @@ static const struct of_device_id of_pwm_fan_match[] = {
{ .compatible = "pwm-fan", },
{},
};
+MODULE_DEVICE_TABLE(of, of_pwm_fan_match);
static struct platform_driver pwm_fan_driver = {
.probe = pwm_fan_probe,