From: Luis de Bethencourt Date: Thu, 17 Sep 2015 16:09:28 +0000 (+0200) Subject: hwmon: (gpio-fan) Fix module autoload for OF platform driver X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe5152882a45a2545d44d39fe29badc8e4f66ad3;p=linux-beck.git 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 Signed-off-by: Guenter Roeck --- 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)