Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303063
b: refs/heads/master
c: a1eacd7
h: refs/heads/master
i:
  303061: f3c3a66
  303059: 8d32dcf
  303055: 8fe58c2
v: v3
  • Loading branch information
H Hartley Sweeten authored and Ryan Mallon committed Apr 11, 2012
1 parent cbf8295 commit 4e69b00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 011b2e84582ba873f63f2c42829f1677782b5cfe
refs/heads/master: a1eacd79a602707f97201edbac9a03edaaea1847
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-ep93xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 4 additions & 12 deletions trunk/arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
*************************************************************************/
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4e69b00

Please sign in to comment.