aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorPaolo Pisati <paolo.pisati@canonical.com>2014-03-06 12:18:37 -0500
committerBryan Wu <cooloney@gmail.com>2014-03-06 14:56:59 -0500
commit472b854bbc0b55de850faa802250fc1aa7692e45 (patch)
tree06385d3b4fb6eb429372efe4d71b56292f3e23f1 /drivers/leds
parentaad0f292756cb267953f6cd04bbf4b51f2497034 (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 953fb37f0375..57ff20fecf57 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[] = {
226 { .compatible = "gpio-leds", }, 226 { .compatible = "gpio-leds", },
227 {}, 227 {},
228}; 228};
229
230MODULE_DEVICE_TABLE(of, of_gpio_leds_match);
229#else /* CONFIG_OF_GPIO */ 231#else /* CONFIG_OF_GPIO */
230static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev) 232static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
231{ 233{