projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3df661
)
leds: leds-ns2: Fix module autoload for OF platform driver
author
Luis de Bethencourt
<luis@debethencourt.com>
Tue, 1 Sep 2015 21:36:59 +0000
(23:36 +0200)
committer
Jacek Anaszewski
<j.anaszewski@samsung.com>
Thu, 17 Sep 2015 08:02:05 +0000
(10:02 +0200)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-ns2.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-ns2.c
b/drivers/leds/leds-ns2.c
index b33514d9f427e279bf091abab4126f55e0d48182..a95a61220169ddc8099ba127d01cdb0db3a5adcb 100644
(file)
--- a/
drivers/leds/leds-ns2.c
+++ b/
drivers/leds/leds-ns2.c
@@
-337,6
+337,7
@@
static const struct of_device_id of_ns2_leds_match[] = {
{ .compatible = "lacie,ns2-leds", },
{},
};
+MODULE_DEVICE_TABLE(of, of_ns2_leds_match);
#endif /* CONFIG_OF_GPIO */
struct ns2_led_priv {