Re: [PATCH] pinctrl: plgpio: Call clk_disable_unprepare only ifclk_prepare_enable is called

From: Linus Walleij
Date: Thu Nov 15 2012 - 06:33:52 EST


On Wed, Nov 14, 2012 at 9:37 AM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> This driver allows clk_get() failure, and still work without it.
> This patch adds !IS_ERR(plgpio->clk) checking in plgpio_request() error path
> so we only call clk_disable_unprepare() if clk_prepare_enable() is called.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Applied with Viresh's ACK, thanks!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/