Commit 68d85d0e authored by Wei Yongjun's avatar Wei Yongjun Committed by Wolfram Sang

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 93d710a6
...@@ -347,7 +347,7 @@ static int dc_i2c_probe(struct platform_device *pdev) ...@@ -347,7 +347,7 @@ static int dc_i2c_probe(struct platform_device *pdev)
ret = i2c_add_adapter(&i2c->adap); ret = i2c_add_adapter(&i2c->adap);
if (ret < 0) { if (ret < 0) {
clk_unprepare(i2c->clk); clk_disable_unprepare(i2c->clk);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment