Messages in this thread | | | From | Linus Walleij <> | Date | Mon, 29 May 2017 10:39:33 +0200 | Subject | Re: [PATCH] gpio: davinci: Handle return value of clk_prepare_enable |
| |
On Tue, May 23, 2017 at 11:18 AM, Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:
> clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
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
| |