Re: [PATCH] clk: Zero-initialize memory for new clock in devm_clk_register

From: Tushar Behera
Date: Tue Oct 29 2013 - 07:45:16 EST

On 29 October 2013 16:20, Tushar Behera <tushar.behera@xxxxxxxxxx> wrote:
> Earlier to commit 64c862a839a8 ("devres: add kernel standard devm_k.alloc
> functions") devres_alloc API used to zero-initialize the devres
> allocated object, but now only the devres header is zero-initialized.
> Since clk_register zero-initializes the memory while allocating for
> a new clock, passing explicit flag __GFP_ZERO to devres_alloc in
> devm_clk_register to match the behaviour.
> Signed-off-by: Tushar Behera <tushar.behera@xxxxxxxxxx>
> ---

Please ignore this patch. Kevin Hilman already has got a nicer patch
[1] that fixes this problem at a generic level.


Tushar Behera
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at