Re: [PATCH 3/9] SPEAr13xx: Add common clock framework support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Fri, Apr 20, 2012 at 10:22 AM, Viresh Kumar <viresh.linux@xxxxxxxxx> wrote:
> This patch adds SPEAr1310 and SPEAr1340's clock framework support. It is based
> on earlier support for SPEAr3xx family.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxx>
> Cc: Mike Turquette <mturquette@xxxxxx>
> ---
> Mike,
>
> This would be required to go through Arnd's tree. So would be great if i can
> have your comments/Ack here.

Most of this patch looks good to me accept for the two items below:

...

> +void __init spear1310_clk_init(void)
> +{
> +       struct clk *clk, *clk1;
> +
> +       clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0);
> +       clk_register_clkdev(clk, "apb_pclk", NULL);

There is no exception handling at all in this function.  Do you just
expect to fail at some later point?

...

> +void __init spear1340_clk_init(void)
> +{
> +       struct clk *clk, *clk1;
> +
> +       clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0);
> +       clk_register_clkdev(clk, "apb_pclk", NULL);

Ditto.

Regards,
Mike

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter