commit | 9804049097af11b4f64a82b0e8c8078b3f2cbada | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Wed Nov 14 16:37:45 2012 +0800 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Nov 15 12:33:11 2012 +0100 |
tree | e7577b2509e0df6518bef68e16e7ee2273eb1fec | |
parent | 6f37b1b4d407d6abcd24c4519cd892903229cd95 [diff] |
pinctrl: plgpio: Call clk_disable_unprepare only if clk_prepare_enable is called 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@ingics.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>