summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-08-16 06:35:36 -0400
committerBryan Wu <bryan.wu@canonical.com>2012-09-11 06:32:40 -0400
commit6ebcebddffbf5c074e467c725aafbd21dfd46ed5 (patch)
treeac522b9ac137f08cedb9761cc3c627c135f4cc77 /drivers/leds
parentd23a22a74fded23a12434c9463fe66cec2b0afcd (diff)
leds: leds-gpio: use of_match_ptr()
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index c032b2180340..4043f7732e57 100644
--- 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
228{ 228{
229 return NULL; 229 return NULL;
230} 230}
231#define of_gpio_leds_match NULL
232#endif /* CONFIG_OF_GPIO */ 231#endif /* CONFIG_OF_GPIO */
233 232
234 233
@@ -287,7 +286,7 @@ static struct platform_driver gpio_led_driver = {
287 .driver = { 286 .driver = {
288 .name = "leds-gpio", 287 .name = "leds-gpio",
289 .owner = THIS_MODULE, 288 .owner = THIS_MODULE,
290 .of_match_table = of_gpio_leds_match, 289 .of_match_table = of_match_ptr(of_gpio_leds_match),
291 }, 290 },
292}; 291};
293 292