From 4e69b0022d869c06ee7c6e99b426a2e4d1d47f2d Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Wed, 11 Apr 2012 15:44:42 -0700 Subject: [PATCH] --- yaml --- r: 303063 b: refs/heads/master c: a1eacd79a602707f97201edbac9a03edaaea1847 h: refs/heads/master i: 303061: f3c3a668e44327230e44d80181cd154568035838 303059: 8d32dcf44612a7f4f0cdef338bf42f8b60ceb477 303055: 8fe58c20c81fa3f03c88f38910e9ea414a8b7008 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-ep93xx/Kconfig | 5 +++++ trunk/arch/arm/mach-ep93xx/core.c | 16 ++++------------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/[refs] b/[refs] index d05bb0816ca4..90f0da16061d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 011b2e84582ba873f63f2c42829f1677782b5cfe +refs/heads/master: a1eacd79a602707f97201edbac9a03edaaea1847 diff --git a/trunk/arch/arm/mach-ep93xx/Kconfig b/trunk/arch/arm/mach-ep93xx/Kconfig index 97a249395b5a..fe3c1fa5462b 100644 --- a/trunk/arch/arm/mach-ep93xx/Kconfig +++ b/trunk/arch/arm/mach-ep93xx/Kconfig @@ -2,6 +2,11 @@ if ARCH_EP93XX menu "Cirrus EP93xx Implementation Options" +config EP93XX_SOC_COMMON + bool + default y + select LEDS_GPIO_REGISTER + config CRUNCH bool "Support for MaverickCrunch" help diff --git a/trunk/arch/arm/mach-ep93xx/core.c b/trunk/arch/arm/mach-ep93xx/core.c index e4a64d2f8955..66b1494f23a6 100644 --- a/trunk/arch/arm/mach-ep93xx/core.c +++ b/trunk/arch/arm/mach-ep93xx/core.c @@ -482,7 +482,7 @@ void __init ep93xx_register_spi(struct ep93xx_spi_info *info, /************************************************************************* * EP93xx LEDs *************************************************************************/ -static struct gpio_led ep93xx_led_pins[] = { +static const struct gpio_led ep93xx_led_pins[] __initconst = { { .name = "platform:grled", .gpio = EP93XX_GPIO_LINE_GRLED, @@ -492,20 +492,11 @@ static struct gpio_led ep93xx_led_pins[] = { }, }; -static struct gpio_led_platform_data ep93xx_led_data = { +static const struct gpio_led_platform_data ep93xx_led_data __initconst = { .num_leds = ARRAY_SIZE(ep93xx_led_pins), .leds = ep93xx_led_pins, }; -static struct platform_device ep93xx_leds = { - .name = "leds-gpio", - .id = -1, - .dev = { - .platform_data = &ep93xx_led_data, - }, -}; - - /************************************************************************* * EP93xx pwm peripheral handling *************************************************************************/ @@ -827,8 +818,9 @@ void __init ep93xx_init_devices(void) platform_device_register(&ep93xx_rtc_device); platform_device_register(&ep93xx_ohci_device); - platform_device_register(&ep93xx_leds); platform_device_register(&ep93xx_wdt_device); + + gpio_led_register_device(-1, &ep93xx_led_data); } void ep93xx_restart(char mode, const char *cmd)