leds: remove config option LEDS_GPIO_PLATFORM from Kconfig
Since the commit a314c5c004
(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>
This commit is contained in:
@@ -93,7 +93,7 @@ config LEDS_NET48XX
|
|||||||
config LEDS_NET5501
|
config LEDS_NET5501
|
||||||
tristate "LED Support for Soekris net5501 series Error LED"
|
tristate "LED Support for Soekris net5501 series Error LED"
|
||||||
depends on LEDS_TRIGGERS
|
depends on LEDS_TRIGGERS
|
||||||
depends on X86 && LEDS_GPIO_PLATFORM && GPIO_CS5535
|
depends on X86 && GPIO_CS5535
|
||||||
select LEDS_TRIGGER_DEFAULT_ON
|
select LEDS_TRIGGER_DEFAULT_ON
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
@@ -183,23 +183,6 @@ config LEDS_GPIO
|
|||||||
defined as platform devices and/or OpenFirmware platform devices.
|
defined as platform devices and/or OpenFirmware platform devices.
|
||||||
The code to use these bindings can be selected below.
|
The code to use these bindings can be selected below.
|
||||||
|
|
||||||
config LEDS_GPIO_PLATFORM
|
|
||||||
bool "Platform device bindings for GPIO LEDs"
|
|
||||||
depends on LEDS_GPIO
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Let the leds-gpio driver drive LEDs which have been defined as
|
|
||||||
platform devices. If you don't know what this means, say yes.
|
|
||||||
|
|
||||||
config LEDS_GPIO_OF
|
|
||||||
bool "OpenFirmware platform device bindings for GPIO LEDs"
|
|
||||||
depends on LEDS_GPIO && OF_DEVICE
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Let the leds-gpio driver drive LEDs which have been defined as
|
|
||||||
of_platform devices. For instance, LEDs which are listed in a "dts"
|
|
||||||
file.
|
|
||||||
|
|
||||||
config LEDS_LP3944
|
config LEDS_LP3944
|
||||||
tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip"
|
tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip"
|
||||||
depends on LEDS_CLASS
|
depends on LEDS_CLASS
|
||||||
|
@@ -165,7 +165,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Code to create from OpenFirmware platform devices */
|
/* Code to create from OpenFirmware platform devices */
|
||||||
#ifdef CONFIG_LEDS_GPIO_OF
|
#ifdef CONFIG_OF_GPIO
|
||||||
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct device_node *np = pdev->dev.of_node, *child;
|
struct device_node *np = pdev->dev.of_node, *child;
|
||||||
@@ -223,13 +223,13 @@ static const struct of_device_id of_gpio_leds_match[] = {
|
|||||||
{ .compatible = "gpio-leds", },
|
{ .compatible = "gpio-leds", },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
#else
|
#else /* CONFIG_OF_GPIO */
|
||||||
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#define of_gpio_leds_match NULL
|
#define of_gpio_leds_match NULL
|
||||||
#endif
|
#endif /* CONFIG_OF_GPIO */
|
||||||
|
|
||||||
|
|
||||||
static int __devinit gpio_led_probe(struct platform_device *pdev)
|
static int __devinit gpio_led_probe(struct platform_device *pdev)
|
||||||
|
Reference in New Issue
Block a user