projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad0f29
)
leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading
author
Paolo Pisati
<paolo.pisati@canonical.com>
Thu, 6 Mar 2014 17:18:37 +0000
(09:18 -0800)
committer
Bryan Wu
<cooloney@gmail.com>
Thu, 6 Mar 2014 19:56:59 +0000
(11:56 -0800)
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>
drivers/leds/leds-gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-gpio.c
b/drivers/leds/leds-gpio.c
index 953fb37f0375abb127f963d435ab097586be9a2a..57ff20fecf57e16e9963db1692206b923593258f 100644
(file)
--- 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)
{