On Mon, Dec 22, 2014 at 10:15:19AM +0800, Chen-Yu Tsai wrote:
> >> + clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk
> >> *),
> >
> > Hmmm, are you sure of that sizeof?
>
> Quite sure. Code in clk-sunxi.c for gates:
>
> clk_data->clks = kzalloc((qty+1) * sizeof(struct clk *), GFP_KERNEL);
>
> Note I'm using kcalloc here.
>
> Also definition for clk_data:
>
> struct clk_onecell_data {
> struct clk **clks;
> unsigned int clk_num;
> };Ah, right, my bad :) Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
