Re: [PATCH] gpio: davinci: Handle return value of clk_prepare_enable

From: Linus Walleij
Date: Mon May 29 2017 - 04:39:50 EST


On Tue, May 23, 2017 at 11:18 AM, Arvind Yadav
<arvind.yadav.cs@xxxxxxxxx> wrote:

> clk_prepare_enable() can fail here and we must check its return value.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>

Patch applied.

Normally we use goto's for the errorpath but in this case I see the
goto is used for positive exit in this driver so this solution is less
messy than adding another goto path.

Yours,
Linus Walleij