hwmon: (pwm-fan) Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Thu, 17 Sep 2015 16:09:55 +0000 (18:09 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Sep 2015 00:50:19 +0000 (17:50 -0700)
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>
drivers/hwmon/pwm-fan.c

index 2d9a712699ff5d541e831629834b23882b4fa606..3e23003f78b01ca731e8c232f38e1132eccf251f 100644 (file)
@@ -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,