ARM: mx5: dynamically allocate imx-keypad devices
commita5fcfef0b8db574098f2e42827117bc4accf2efd
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 1 Dec 2010 13:11:47 +0000 (1 11:11 -0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 12 Jan 2011 13:50:45 +0000 (12 14:50 +0100)
treec7c2223b26ae5d37ef10203af2e781e51e43b0cf
parent076762aa52de48688f6e1b6999fe58d736479f37
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>
arch/arm/mach-mx5/Kconfig
arch/arm/mach-mx5/board-mx51_3ds.c
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/mach-mx5/devices-imx51.h
arch/arm/mach-mx5/devices.c
arch/arm/mach-mx5/devices.h
arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
arch/arm/plat-mxc/devices/platform-imx-keypad.c
arch/arm/plat-mxc/include/mach/mx51.h