diff options
Diffstat (limited to 'arch/arm/mach-mxs/mach-tx28.c')
-rw-r--r-- | arch/arm/mach-mxs/mach-tx28.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 | ||
112 | static struct gpio_led tx28_stk5v3_leds[] = { | 112 | static 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)); |