diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-16 15:27:33 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:36 -0500 |
commit | d690b4c4778096cde018709efd005dfef9714297 (patch) | |
tree | c19176b853aaa8d2d5584a1179ee370d3323690a /arch/arm/mach-mx3/mach-mx31_3ds.c | |
parent | 742269e2d971957c84f364c4e9f5c6439964ef01 (diff) |
ARM: mx3: dynamically allocate imx-keypad devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31_3ds.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31_3ds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index 1b46f738b310..3dea40743f81 100644 --- a/arch/arm/mach-mx3/mach-mx31_3ds.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/mfd/mc13783.h> | 22 | #include <linux/mfd/mc13783.h> |
23 | #include <linux/spi/spi.h> | 23 | #include <linux/spi/spi.h> |
24 | #include <linux/regulator/machine.h> | 24 | #include <linux/regulator/machine.h> |
25 | #include <linux/input/matrix_keypad.h> | ||
26 | 25 | ||
27 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
28 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
@@ -101,7 +100,7 @@ static const uint32_t mx31_3ds_keymap[] = { | |||
101 | KEY(2, 3, KEY_F10), | 100 | KEY(2, 3, KEY_F10), |
102 | }; | 101 | }; |
103 | 102 | ||
104 | static struct matrix_keymap_data mx31_3ds_keymap_data = { | 103 | static const struct matrix_keymap_data mx31_3ds_keymap_data __initconst = { |
105 | .keymap = mx31_3ds_keymap, | 104 | .keymap = mx31_3ds_keymap, |
106 | .keymap_size = ARRAY_SIZE(mx31_3ds_keymap), | 105 | .keymap_size = ARRAY_SIZE(mx31_3ds_keymap), |
107 | }; | 106 | }; |
@@ -245,7 +244,7 @@ static void __init mxc_board_init(void) | |||
245 | spi_register_board_info(mx31_3ds_spi_devs, | 244 | spi_register_board_info(mx31_3ds_spi_devs, |
246 | ARRAY_SIZE(mx31_3ds_spi_devs)); | 245 | ARRAY_SIZE(mx31_3ds_spi_devs)); |
247 | 246 | ||
248 | mxc_register_device(&imx_kpp_device, &mx31_3ds_keymap_data); | 247 | imx31_add_imx_keypad(&mx31_3ds_keymap_data); |
249 | 248 | ||
250 | mx31_3ds_usbotg_init(); | 249 | mx31_3ds_usbotg_init(); |
251 | imx31_add_fsl_usb2_udc(&usbotg_pdata); | 250 | imx31_add_fsl_usb2_udc(&usbotg_pdata); |