summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Pisati <paolo.pisati@canonical.com>2014-03-06 09:18:37 -0800
committerBryan Wu <cooloney@gmail.com>2014-03-06 11:56:59 -0800
commit472b854bbc0b55de850faa802250fc1aa7692e45 (patch)
tree06385d3b4fb6eb429372efe4d71b56292f3e23f1
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>
-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[] = {
{ .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)
{