aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-05-28 15:05:03 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-07 03:59:57 -0400
commit4daca0e0170b3996a403d10b6b5838a69785faeb (patch)
treec34e7625a3ab4d1d2c9fb0b7294e70cd5243438b /arch
parent5b8d628ca4036e76a2d892f2c1d01b58d232809e (diff)
ARM: mxs/tx28: convert to new leds-gpio registration helper
This allows to move the led definition to .init.rodata. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mxs/Kconfig1
-rw-r--r--arch/arm/mach-mxs/mach-tx28.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
index f114960622e0..162b0b0bc356 100644
--- a/arch/arm/mach-mxs/Kconfig
+++ b/arch/arm/mach-mxs/Kconfig
@@ -55,6 +55,7 @@ config MACH_MX28EVK
55config MODULE_TX28 55config MODULE_TX28
56 bool 56 bool
57 select SOC_IMX28 57 select SOC_IMX28
58 select LEDS_GPIO_REGISTER
58 select MXS_HAVE_AMBA_DUART 59 select MXS_HAVE_AMBA_DUART
59 select MXS_HAVE_PLATFORM_AUART 60 select MXS_HAVE_PLATFORM_AUART
60 select MXS_HAVE_PLATFORM_FEC 61 select MXS_HAVE_PLATFORM_FEC
diff --git a/arch/arm/mach-mxs/mach-tx28.c b/arch/arm/mach-mxs/mach-tx28.c
index 068e540efbb6..6766a12cca7f 100644
--- a/arch/arm/mach-mxs/mach-tx28.c
+++ b/arch/arm/mach-mxs/mach-tx28.c
@@ -109,7 +109,7 @@ static const iomux_cfg_t tx28_stk5v3_pads[] __initconst = {
109 (MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), 109 (MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
110}; 110};
111 111
112static struct gpio_led tx28_stk5v3_leds[] = { 112static const struct gpio_led tx28_stk5v3_leds[] __initconst = {
113 { 113 {
114 .name = "GPIO-LED", 114 .name = "GPIO-LED",
115 .default_trigger = "heartbeat", 115 .default_trigger = "heartbeat",
@@ -151,8 +151,7 @@ static void __init tx28_stk5v3_init(void)
151 /* spi via ssp will be added when available */ 151 /* spi via ssp will be added when available */
152 spi_register_board_info(tx28_spi_board_info, 152 spi_register_board_info(tx28_spi_board_info,
153 ARRAY_SIZE(tx28_spi_board_info)); 153 ARRAY_SIZE(tx28_spi_board_info));
154 mxs_add_platform_device("leds-gpio", 0, NULL, 0, 154 gpio_led_register_device(0, &tx28_stk5v3_led_data);
155 &tx28_stk5v3_led_data, sizeof(tx28_stk5v3_led_data));
156 mx28_add_mxs_i2c(0); 155 mx28_add_mxs_i2c(0);
157 i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo, 156 i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo,
158 ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo)); 157 ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo));