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)
commit2dc9688a106886db7191d30f30ffd61fde827efd
tree6d1a6a1801ef4200260aeb94586ab856ccd54d5d
parent25b3dfc87bff80317d67ddd2cd4cfb91e6fe7d79
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