diff options
author | Paolo Pisati <paolo.pisati@canonical.com> | 2014-03-06 09:18:37 -0800 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-03-06 11:56:59 -0800 |
commit | 472b854bbc0b55de850faa802250fc1aa7692e45 (patch) | |
tree | 06385d3b4fb6eb429372efe4d71b56292f3e23f1 /drivers/leds | |
parent | aad0f292756cb267953f6cd04bbf4b51f2497034 (diff) |
leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading
Enable autoloading of leds-gpio module when a corresponing DT entry is present.
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-gpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 953fb37f037..57ff20fecf5 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -226,6 +226,8 @@ static const struct of_device_id of_gpio_leds_match[] = { { .compatible = "gpio-leds", }, {}, }; + +MODULE_DEVICE_TABLE(of, of_gpio_leds_match); #else /* CONFIG_OF_GPIO */ static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev) { |