[PATCH 3/3] mx51/clock: add keypad clock definition and registration
Amit Kucheria
amit.kucheria at canonical.com
Wed Jun 2 04:00:54 EDT 2010
On 10 Jun 01, Jason Wang wrote:
> On i.MX51 platforms, the keypad controller has no gate clock, to
> meet the imx keypad driver requirement, we add a empty definition and
> register it. Now the keypad driver can work.
>
> Signed-off-by: Jason Wang <jason77.wang at gmail.com>
> ---
> arch/arm/mach-mx5/clock-mx51.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c
> index d9f612d..e89b93a 100644
> --- a/arch/arm/mach-mx5/clock-mx51.c
> +++ b/arch/arm/mach-mx5/clock-mx51.c
> @@ -758,6 +758,10 @@ static struct clk gpt_32k_clk = {
> .parent = &ckil_clk,
> };
>
> +static struct clk kpp_clk = {
> + .id = 0,
> +};
> +
> #define DEFINE_CLOCK(name, i, er, es, gr, sr, p, s) \
> static struct clk name = { \
> .id = i, \
> @@ -821,6 +825,7 @@ static struct clk_lookup lookups[] = {
> _REGISTER_CLOCK("mxc-ehci.1", "usb_ahb", ahb_clk)
> _REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk)
> _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk)
> + _REGISTER_CLOCK(NULL, "kpp", kpp_clk)
Should be
_REGISTER_CLOCK("imx-keypad", NULL, kpp_clk)
since that is the device id that will be used in your platform device.
--
----------------------------------------------------------------------
Amit Kucheria, Kernel Engineer || amit.kucheria at canonical.com
----------------------------------------------------------------------
More information about the linux-arm-kernel
mailing list