diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-10 03:58:56 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:32 -0500 |
commit | 3f880141b8d12cdbb5faf0b9941ee50ac515ea1e (patch) | |
tree | ad50ed7f31b47c4375d48df0a4c54e655423adc1 /arch/arm/mach-imx/mach-mx27_3ds.c | |
parent | bd455ed36c487b949068182bfee478b785ee090b (diff) |
ARM: imx: dynamically allocate imx-keypad devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx27_3ds.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27_3ds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c index e6212c3d53b5..80399b268052 100644 --- a/arch/arm/mach-imx/mach-mx27_3ds.c +++ b/arch/arm/mach-imx/mach-mx27_3ds.c | |||
@@ -22,7 +22,6 @@ | |||
22 | 22 | ||
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/input/matrix_keypad.h> | ||
26 | #include <linux/irq.h> | 25 | #include <linux/irq.h> |
27 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
@@ -91,7 +90,7 @@ static const uint32_t mx27_3ds_keymap[] = { | |||
91 | KEY(2, 3, KEY_F10), | 90 | KEY(2, 3, KEY_F10), |
92 | }; | 91 | }; |
93 | 92 | ||
94 | static struct matrix_keymap_data mx27_3ds_keymap_data = { | 93 | static const struct matrix_keymap_data mx27_3ds_keymap_data __initconst = { |
95 | .keymap = mx27_3ds_keymap, | 94 | .keymap = mx27_3ds_keymap, |
96 | .keymap_size = ARRAY_SIZE(mx27_3ds_keymap), | 95 | .keymap_size = ARRAY_SIZE(mx27_3ds_keymap), |
97 | }; | 96 | }; |
@@ -127,7 +126,7 @@ static void __init mx27pdk_init(void) | |||
127 | mx27_3ds_sdhc1_enable_level_translator(); | 126 | mx27_3ds_sdhc1_enable_level_translator(); |
128 | imx27_add_imx_uart0(&uart_pdata); | 127 | imx27_add_imx_uart0(&uart_pdata); |
129 | imx27_add_fec(NULL); | 128 | imx27_add_fec(NULL); |
130 | mxc_register_device(&imx_kpp_device, &mx27_3ds_keymap_data); | 129 | imx27_add_imx_keypad(&mx27_3ds_keymap_data); |
131 | imx27_add_mxc_mmc(0, &sdhc1_pdata); | 130 | imx27_add_mxc_mmc(0, &sdhc1_pdata); |
132 | } | 131 | } |
133 | 132 | ||