diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-01 20:46:29 +0900 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-09-08 22:41:02 +0200 |
commit | 405188e86a4acb732f94f6d7a00b7fbb89cf5309 (patch) | |
tree | f01feab83fb6f899ff6e28e2a17e9962ab40c682 /mm/dmapool.c | |
parent | 4c91307ce9387519836e17482906ef0f698ea7d9 (diff) | |
download | linux-405188e86a4acb732f94f6d7a00b7fbb89cf5309.tar.bz2 |
i2c: uniphier-f: 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 'mm/dmapool.c')
0 files changed, 0 insertions, 0 deletions