diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-11-14 16:37:45 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-15 12:33:11 +0100 |
commit | 9804049097af11b4f64a82b0e8c8078b3f2cbada (patch) | |
tree | e7577b2509e0df6518bef68e16e7ee2273eb1fec /sound/spi/at73c213.h | |
parent | 6f37b1b4d407d6abcd24c4519cd892903229cd95 (diff) | |
download | op-kernel-dev-9804049097af11b4f64a82b0e8c8078b3f2cbada.zip op-kernel-dev-9804049097af11b4f64a82b0e8c8078b3f2cbada.tar.gz |
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>
Diffstat (limited to 'sound/spi/at73c213.h')
0 files changed, 0 insertions, 0 deletions