提交 4daca0e0 编写于 作者: U Uwe Kleine-König 提交者: Sascha Hauer

ARM: mxs/tx28: convert to new leds-gpio registration helper

This allows to move the led definition to .init.rodata.
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 5b8d628c
...@@ -55,6 +55,7 @@ config MACH_MX28EVK ...@@ -55,6 +55,7 @@ config MACH_MX28EVK
config MODULE_TX28 config MODULE_TX28
bool bool
select SOC_IMX28 select SOC_IMX28
select LEDS_GPIO_REGISTER
select MXS_HAVE_AMBA_DUART select MXS_HAVE_AMBA_DUART
select MXS_HAVE_PLATFORM_AUART select MXS_HAVE_PLATFORM_AUART
select MXS_HAVE_PLATFORM_FEC select MXS_HAVE_PLATFORM_FEC
......
...@@ -109,7 +109,7 @@ static const iomux_cfg_t tx28_stk5v3_pads[] __initconst = { ...@@ -109,7 +109,7 @@ static const iomux_cfg_t tx28_stk5v3_pads[] __initconst = {
(MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), (MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
}; };
static struct gpio_led tx28_stk5v3_leds[] = { static const struct gpio_led tx28_stk5v3_leds[] __initconst = {
{ {
.name = "GPIO-LED", .name = "GPIO-LED",
.default_trigger = "heartbeat", .default_trigger = "heartbeat",
...@@ -151,8 +151,7 @@ static void __init tx28_stk5v3_init(void) ...@@ -151,8 +151,7 @@ static void __init tx28_stk5v3_init(void)
/* spi via ssp will be added when available */ /* spi via ssp will be added when available */
spi_register_board_info(tx28_spi_board_info, spi_register_board_info(tx28_spi_board_info,
ARRAY_SIZE(tx28_spi_board_info)); ARRAY_SIZE(tx28_spi_board_info));
mxs_add_platform_device("leds-gpio", 0, NULL, 0, gpio_led_register_device(0, &tx28_stk5v3_led_data);
&tx28_stk5v3_led_data, sizeof(tx28_stk5v3_led_data));
mx28_add_mxs_i2c(0); mx28_add_mxs_i2c(0);
i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo, i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo,
ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo)); ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册