summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorPaolo Pisati <paolo.pisati@canonical.com>2014-03-06 18:18:37 +0100
committerBryan Wu <cooloney@gmail.com>2014-03-06 20:56:59 +0100
commit472b854bbc0b55de850faa802250fc1aa7692e45 (patch)
tree06385d3b4fb6eb429372efe4d71b56292f3e23f1 /drivers/leds
parentleds: clevo-mail: remove __initdata marker (diff)
downloadlinux-472b854bbc0b55de850faa802250fc1aa7692e45.tar.xz
linux-472b854bbc0b55de850faa802250fc1aa7692e45.zip
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[] = {
{ .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)
{