]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: wmt: add missing clk_disable_unprepare() on error
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Nov 2013 14:23:50 +0000 (22:23 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 14 Nov 2013 17:57:32 +0000 (18:57 +0100)
commita5db8b080806bc1ae0b85564f9128341d5204f36
tree6d1a6a1801ef4200260aeb94586ab856ccd54d5d
parent890b3a7289d65baf34ac67ba551fc84388155cbb
i2c: wmt: add missing clk_disable_unprepare() on error

Add the missing clk_disable_unprepare() before return
from wmt_i2c_reset_hardware() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org # 3.11+
drivers/i2c/busses/i2c-wmt.c