On 11/08/2016 03:34 PM, Rajendra Nayak wrote:
>
>
> On 11/08/2016 03:06 PM, Geert Uytterhoeven wrote:
>> Hi Rajendra,
>>
>> On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote:
>>> With clk_hw_register() API we hide the struct clk from the caller
>>> and return an int error code instead, so th
On 11/08/2016 03:06 PM, Geert Uytterhoeven wrote:
> Hi Rajendra,
>
> On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote:
>> With clk_hw_register() API we hide the struct clk from the caller
>> and return an int error code instead, so the caller (clk provider)
>> is not expected to use hw->clk
Hi Rajendra,
On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote:
> With clk_hw_register() API we hide the struct clk from the caller
> and return an int error code instead, so the caller (clk provider)
> is not expected to use hw->clk on return.
That's correct, in case of failure.
> Free the
With clk_hw_register() API we hide the struct clk from the caller
and return an int error code instead, so the caller (clk provider)
is not expected to use hw->clk on return.
Free the memory, and mark hw->clk as NULL before returning.
Signed-off-by: Rajendra Nayak
---
drivers/clk/clk.c | 10
4 matches
Mail list logo