diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2010-12-01 08:11:47 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-12 08:50:45 -0500 |
commit | a5fcfef0b8db574098f2e42827117bc4accf2efd (patch) | |
tree | c7c2223b26ae5d37ef10203af2e781e51e43b0cf /arch/arm/mach-mx5/devices-imx51.h | |
parent | 076762aa52de48688f6e1b6999fe58d736479f37 (diff) |
ARM: mx5: dynamically allocate imx-keypad devices
Add support for dynamical allocation of imx-keypad on mx5 platform.
After moving to dynamically registration of the keypad, the keypad clock
name needs to change accordingly.
The reason is that the original mx5 keypad platform_device id was 0,
now we use id=-1 as per arch/arm/plat-mxc/devices/platform-imx-keypad.c.
Tested keypad successfully on a MX51_3DS board.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/devices-imx51.h')
-rw-r--r-- | arch/arm/mach-mx5/devices-imx51.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/devices-imx51.h b/arch/arm/mach-mx5/devices-imx51.h index 39183ee56dd6..531f4544dc95 100644 --- a/arch/arm/mach-mx5/devices-imx51.h +++ b/arch/arm/mach-mx5/devices-imx51.h | |||
@@ -51,3 +51,7 @@ extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[] __initconst; | |||
51 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[] __initconst; | 51 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[] __initconst; |
52 | #define imx51_add_mxc_pwm(id, pdata) \ | 52 | #define imx51_add_mxc_pwm(id, pdata) \ |
53 | imx_add_mxc_pwm(&imx51_mxc_pwm_data[id], pdata) | 53 | imx_add_mxc_pwm(&imx51_mxc_pwm_data[id], pdata) |
54 | |||
55 | extern const struct imx_imx_keypad_data imx51_imx_keypad_data __initconst; | ||
56 | #define imx51_add_imx_keypad(pdata) \ | ||
57 | imx_add_imx_keypad(&imx51_imx_keypad_data, pdata) | ||