[RFC] ARM: mx27: Replace clk_register_clkdev with clock DT lookup

Fabio Estevam festevam at gmail.com
Thu Nov 22 06:44:07 EST 2012


Hi Sascha,

On Thu, Nov 22, 2012 at 5:57 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:

>> +     Clock                   ID
>> +     ---------------------------
>> +     dummy                   0
>> +     ckih                    1
>> +     ckil                    2
>> +     mpll                    3
>> +     spll                    4
>> +     mpll_main2              5
>> +     ahb ipg                 6
>         ^^^^^^^
>
> You could add the following to the clock code, this makes
> generating the lists less error prone:
>
>         for (i = 0; i < ARRAY_SIZE(clk); i++)
>                 pr_err("%-20s %d\n", IS_ERR(clk[i]) ? "-----" : __clk_get_name(clk[i]), i);

Thanks, this was the issue. It boots fine now.

Will rebase against imx/soc and re-submit.

Thanks,

Fabio Estevam



More information about the linux-arm-kernel mailing list