Fixed warning case during suspend.
There is the case that is calling clk_unprepare
even not called clk_disable during suspend_noirq.
flow of warning case:
exynos5_i2c_runtime_resume (clk_enable)
-> exynos5_i2c_suspend_noirq (clk_unprepare)
-> exynos5_i2c_runtime_suspend(clk_disable)
Change-Id: I482c924a2440caa5407e4b6682b1f4fc10648dc5
Signed-off-by: Jung-Ick Guack <ji.guack@samsung.com>
i2c_lock_adapter(&i2c->adap);
i2c->suspended = 1;
- clk_unprepare(i2c->clk);
i2c_unlock_adapter(&i2c->adap);
return 0;
i2c_lock_adapter(&i2c->adap);
exynos_update_ip_idle_status(i2c->idle_ip_index, 0);
- ret = clk_prepare_enable(i2c->clk);
+ ret = clk_enable(i2c->clk);
if (ret) {
exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
+ i2c_unlock_adapter(&i2c->adap);
return ret;
}
exynos5_i2c_reset(i2c);