浏览代码

i2c: sh_mobile: let RuntimePM do the clock handling

No need to do it manually.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 7 年之前
父节点
当前提交
91701ae85d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/i2c/busses/i2c-sh_mobile.c

+ 0 - 2
drivers/i2c/busses/i2c-sh_mobile.c

@@ -702,7 +702,6 @@ static int sh_mobile_i2c_xfer(struct i2c_adapter *adapter,
 
 
 	/* Wake up device and enable clock */
 	/* Wake up device and enable clock */
 	pm_runtime_get_sync(pd->dev);
 	pm_runtime_get_sync(pd->dev);
-	clk_prepare_enable(pd->clk);
 
 
 	/* Process all messages */
 	/* Process all messages */
 	for (i = 0; i < num; i++) {
 	for (i = 0; i < num; i++) {
@@ -743,7 +742,6 @@ static int sh_mobile_i2c_xfer(struct i2c_adapter *adapter,
 	iic_wr(pd, ICCR, 0);
 	iic_wr(pd, ICCR, 0);
 
 
 	/* Disable clock and mark device as idle */
 	/* Disable clock and mark device as idle */
-	clk_disable_unprepare(pd->clk);
 	pm_runtime_put_sync(pd->dev);
 	pm_runtime_put_sync(pd->dev);
 
 
 	return err ?: num;
 	return err ?: num;