aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_3ds.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-01-14 05:31:35 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-27 08:33:36 -0500
commit818956e0b68f35ef56e9361d0fdea5d935e3827a (patch)
treea029fe1c1a1573df5f35f3620829f3ff2a67170b /arch/arm/mach-mx5/board-mx51_3ds.c
parent27d2d62b8b03c9dd2de9a367c19812e089da71c5 (diff)
ARM i.MX51 mx51-3ds: remove unnecessary CONFIG_KEYBOARD_IMX ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_3ds.c')
-rw-r--r--arch/arm/mach-mx5/board-mx51_3ds.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_3ds.c b/arch/arm/mach-mx5/board-mx51_3ds.c
index 2f5acd0b6775..55d5746753a3 100644
--- a/arch/arm/mach-mx5/board-mx51_3ds.c
+++ b/arch/arm/mach-mx5/board-mx51_3ds.c
@@ -75,7 +75,6 @@ static const struct imxuart_platform_data uart_pdata __initconst = {
75 .flags = IMXUART_HAVE_RTSCTS, 75 .flags = IMXUART_HAVE_RTSCTS,
76}; 76};
77 77
78#if defined(CONFIG_KEYBOARD_IMX) || defined(CONFIG_KEYBOARD_IMX_MODULE)
79static int mx51_3ds_board_keymap[] = { 78static int mx51_3ds_board_keymap[] = {
80 KEY(0, 0, KEY_1), 79 KEY(0, 0, KEY_1),
81 KEY(0, 1, KEY_2), 80 KEY(0, 1, KEY_2),
@@ -111,16 +110,6 @@ static const struct matrix_keymap_data mx51_3ds_map_data __initconst = {
111 .keymap_size = ARRAY_SIZE(mx51_3ds_board_keymap), 110 .keymap_size = ARRAY_SIZE(mx51_3ds_board_keymap),
112}; 111};
113 112
114static void mxc_init_keypad(void)
115{
116 imx51_add_imx_keypad(&mx51_3ds_map_data);
117}
118#else
119static inline void mxc_init_keypad(void)
120{
121}
122#endif
123
124static int mx51_3ds_spi2_cs[] = { 113static int mx51_3ds_spi2_cs[] = {
125 MXC_SPI_CS(0), 114 MXC_SPI_CS(0),
126 MX51_3DS_ECSPI2_CS, 115 MX51_3DS_ECSPI2_CS,
@@ -162,7 +151,7 @@ static void __init mxc_board_init(void)
162 "devices on the board are unusable.\n"); 151 "devices on the board are unusable.\n");
163 152
164 imx51_add_sdhci_esdhc_imx(0, NULL); 153 imx51_add_sdhci_esdhc_imx(0, NULL);
165 mxc_init_keypad(); 154 imx51_add_imx_keypad(&mx51_3ds_map_data);
166 imx51_add_imx2_wdt(0, NULL); 155 imx51_add_imx2_wdt(0, NULL);
167} 156}
168 157