Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: remove config option LEDS_GPIO_PLATFORM from Kconfig

Since the commit a314c5c0040aab51ebb1ecfd37a9198a91962243
(leds/leds-gpio: merge platform_driver with of_platform_driver),
the config option LEDS_GPIO_PLATFORM becomes useless, so remove it.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
[grant.likely: also remove LEDS_GPIO_OF for same reason]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

authored by

Shawn Guo and committed by
Grant Likely
2bcc7ed5 a3cc68c3

+4 -21
+1 -18
drivers/leds/Kconfig
··· 93 93 config LEDS_NET5501 94 94 tristate "LED Support for Soekris net5501 series Error LED" 95 95 depends on LEDS_TRIGGERS 96 - depends on X86 && LEDS_GPIO_PLATFORM && GPIO_CS5535 96 + depends on X86 && GPIO_CS5535 97 97 select LEDS_TRIGGER_DEFAULT_ON 98 98 default n 99 99 help ··· 182 182 and they must be connected to the GPIO lines. The LEDs must be 183 183 defined as platform devices and/or OpenFirmware platform devices. 184 184 The code to use these bindings can be selected below. 185 - 186 - config LEDS_GPIO_PLATFORM 187 - bool "Platform device bindings for GPIO LEDs" 188 - depends on LEDS_GPIO 189 - default y 190 - help 191 - Let the leds-gpio driver drive LEDs which have been defined as 192 - platform devices. If you don't know what this means, say yes. 193 - 194 - config LEDS_GPIO_OF 195 - bool "OpenFirmware platform device bindings for GPIO LEDs" 196 - depends on LEDS_GPIO && OF_DEVICE 197 - default y 198 - help 199 - Let the leds-gpio driver drive LEDs which have been defined as 200 - of_platform devices. For instance, LEDs which are listed in a "dts" 201 - file. 202 185 203 186 config LEDS_LP3944 204 187 tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip"
+3 -3
drivers/leds/leds-gpio.c
··· 165 165 } 166 166 167 167 /* Code to create from OpenFirmware platform devices */ 168 - #ifdef CONFIG_LEDS_GPIO_OF 168 + #ifdef CONFIG_OF_GPIO 169 169 static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 170 170 { 171 171 struct device_node *np = pdev->dev.of_node, *child; ··· 223 223 { .compatible = "gpio-leds", }, 224 224 {}, 225 225 }; 226 - #else 226 + #else /* CONFIG_OF_GPIO */ 227 227 static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 228 228 { 229 229 return NULL; 230 230 } 231 231 #define of_gpio_leds_match NULL 232 - #endif 232 + #endif /* CONFIG_OF_GPIO */ 233 233 234 234 235 235 static int __devinit gpio_led_probe(struct platform_device *pdev)