diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2015-09-17 18:09:28 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-09-20 17:50:19 -0700 |
commit | fe5152882a45a2545d44d39fe29badc8e4f66ad3 (patch) | |
tree | 63387b94933868988793d2c3afa78d64725d31b6 /drivers/hwmon/gpio-fan.c | |
parent | 3245acbce952cda75b2fafa8e40452ef0c4756c1 (diff) | |
download | linux-fe5152882a45a2545d44d39fe29badc8e4f66ad3.tar.bz2 |
hwmon: (gpio-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/gpio-fan.c')
-rw-r--r-- | drivers/hwmon/gpio-fan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index a3dae6d0082a..82de3deeb18a 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c @@ -539,6 +539,7 @@ static const struct of_device_id of_gpio_fan_match[] = { { .compatible = "gpio-fan", }, {}, }; +MODULE_DEVICE_TABLE(of, of_gpio_fan_match); #endif /* CONFIG_OF_GPIO */ static int gpio_fan_probe(struct platform_device *pdev) |