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:
d23a22a
)
leds: leds-gpio: use of_match_ptr()
author
Tobias Klauser
<tklauser@distanz.ch>
Thu, 16 Aug 2012 10:35:36 +0000
(18:35 +0800)
committer
Bryan Wu
<bryan.wu@canonical.com>
Tue, 11 Sep 2012 10:32:40 +0000
(18:32 +0800)
Instead of having to define the match table to NULL if CONFIG_OF isn't
set, use the of_match_ptr() macro which will do this for us.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bryan Wu <bryan.wu@canonical.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 c032b2180340e123c3017e893185c34087fcdbde..4043f7732e57707306701d99bb90cf7da4ff3ec2 100644
(file)
--- a/
drivers/leds/leds-gpio.c
+++ b/
drivers/leds/leds-gpio.c
@@
-228,7
+228,6
@@
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_dev
{
return NULL;
}
-#define of_gpio_leds_match NULL
#endif /* CONFIG_OF_GPIO */
@@
-287,7
+286,7
@@
static struct platform_driver gpio_led_driver = {
.driver = {
.name = "leds-gpio",
.owner = THIS_MODULE,
- .of_match_table = of_
gpio_leds_match
,
+ .of_match_table = of_
match_ptr(of_gpio_leds_match)
,
},
};