aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r--drivers/leds/leds-gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index b0480c8fbcbf..3d8bc327a68d 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -165,7 +165,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds)
165} 165}
166 166
167/* Code to create from OpenFirmware platform devices */ 167/* Code to create from OpenFirmware platform devices */
168#ifdef CONFIG_LEDS_GPIO_OF 168#ifdef CONFIG_OF_GPIO
169static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 169static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
170{ 170{
171 struct device_node *np = pdev->dev.of_node, *child; 171 struct device_node *np = pdev->dev.of_node, *child;
@@ -223,13 +223,13 @@ static const struct of_device_id of_gpio_leds_match[] = {
223 { .compatible = "gpio-leds", }, 223 { .compatible = "gpio-leds", },
224 {}, 224 {},
225}; 225};
226#else 226#else /* CONFIG_OF_GPIO */
227static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 227static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
228{ 228{
229 return NULL; 229 return NULL;
230} 230}
231#define of_gpio_leds_match NULL 231#define of_gpio_leds_match NULL
232#endif 232#endif /* CONFIG_OF_GPIO */
233 233
234 234
235static int __devinit gpio_led_probe(struct platform_device *pdev) 235static int __devinit gpio_led_probe(struct platform_device *pdev)