diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2015-09-17 12:09:55 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-09-20 20:50:19 -0400 |
commit | f491e70ccffa5d19aa51c958909320fa1f3905ed (patch) | |
tree | 7c30c203a5f03731cff65170dbcbd54a544f3503 /drivers/hwmon | |
parent | fe5152882a45a2545d44d39fe29badc8e4f66ad3 (diff) |
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/pwm-fan.c | 1 |
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[] = { | |||
323 | { .compatible = "pwm-fan", }, | 323 | { .compatible = "pwm-fan", }, |
324 | {}, | 324 | {}, |
325 | }; | 325 | }; |
326 | MODULE_DEVICE_TABLE(of, of_pwm_fan_match); | ||
326 | 327 | ||
327 | static struct platform_driver pwm_fan_driver = { | 328 | static struct platform_driver pwm_fan_driver = { |
328 | .probe = pwm_fan_probe, | 329 | .probe = pwm_fan_probe, |