diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2015-09-17 18:09:55 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-09-21 02:50:19 +0200 |
commit | f491e70ccffa5d19aa51c958909320fa1f3905ed (patch) | |
tree | 7c30c203a5f03731cff65170dbcbd54a544f3503 /drivers | |
parent | hwmon: (gpio-fan) Fix module autoload for OF platform driver (diff) | |
download | linux-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>
Diffstat (limited to 'drivers')
-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[] = { { .compatible = "pwm-fan", }, {}, }; +MODULE_DEVICE_TABLE(of, of_pwm_fan_match); static struct platform_driver pwm_fan_driver = { .probe = pwm_fan_probe, |