i2c: digicolor: use clk_disable_unprepare instead of clk_unprepare
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 29 Oct 2016 16:31:17 +0000 (16:31 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 18 Nov 2016 00:48:01 +0000 (01:48 +0100)
commit68d85d0e03eab60c238ebe673c7cea1cf70275d4
treece027ec34ba4625e886874debbf559847e08612d
parent93d710a65ef02fb7fd48ae207e78f460bd7a6089
i2c: digicolor: use clk_disable_unprepare instead of clk_unprepare

since clk_prepare_enable() is used to get i2c->clk, we should
use clk_disable_unprepare() to release it for the error path.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-digicolor.c