aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-19 15:57:01 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-19 15:57:01 +0000
commitdbf4111ad7058fb43a7ad8f216fa32721a3147d2 (patch)
tree994573e5d2c2b509f056191b7a2cc16e522597ee /target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
parentc0a33c12b0805710338626e59f129afceee7996e (diff)
downloadmaster-187ad058-dbf4111ad7058fb43a7ad8f216fa32721a3147d2.tar.gz
master-187ad058-dbf4111ad7058fb43a7ad8f216fa32721a3147d2.tar.bz2
master-187ad058-dbf4111ad7058fb43a7ad8f216fa32721a3147d2.zip
ar71xx: add latch_change field to rb750_led_platform_data
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31023 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
index bcd961e1bd..4ef1b10d37 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
@@ -47,11 +47,7 @@ static struct rb750_led_data rb750_leds[] = {
}
};
-static struct rb750_led_platform_data rb750_leds_data = {
- .num_leds = ARRAY_SIZE(rb750_leds),
- .leds = rb750_leds,
-};
-
+static struct rb750_led_platform_data rb750_leds_data;
static struct platform_device rb750_leds_device = {
.name = "leds-rb750",
.dev = {
@@ -155,6 +151,9 @@ static void __init rb750_setup(void)
/* WAN port */
ath79_register_eth(0);
+ rb750_leds_data.num_leds = ARRAY_SIZE(rb750_leds);
+ rb750_leds_data.leds = rb750_leds;
+ rb750_leds_data.latch_change = rb750_nand_latch_change;
platform_device_register(&rb750_leds_device);
rb750_nand_data.nce_line = RB750_NAND_NCE;