diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-01 20:46:28 +0900 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-09-08 22:40:32 +0200 |
commit | 4c91307ce9387519836e17482906ef0f698ea7d9 (patch) | |
tree | 059b502e466ff8e50b5142bc349365bf73b17997 /lib/mpi/mpiutil.c | |
parent | fbf8090b723d4df3cfe18c9491a8bc21ec15a5c0 (diff) |
i2c: uniphier: avoid WARN_ON() of clk_disable() in failure path
If clk_prepare_enable() fails, clk_disable_unprepare() is called in
the failure path, where the enable_count is still zero, so it hits
WARN_ON(core->enable_count == 0) in the clk_core_disable().
To fix this, make the clock setting more linear in the probe function
so that it can exploit "goto err" in case of error.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions