[COMMON] i2c: s3c2410: Remove unnecessary pm runtime fucntion calls
authorKyungwoo Kang <kwoo.kang@samsung.com>
Thu, 17 May 2018 05:49:04 +0000 (14:49 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Wed, 30 May 2018 04:34:52 +0000 (13:34 +0900)
At 4.4 linux migration code, unnecessary PM_RUNTIME functions were
added.

Change-Id: I40cbf4cdf478d261f007053498e217d7cfdb53ac
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
drivers/i2c/busses/i2c-s3c2410.c

index 7a63a6a25a65385ebd0100e1a6fb7ffa4a4e2fb2..2a6f3f23a072429690129f8f36fdf678f5b76e62 100644 (file)
@@ -847,7 +847,6 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
        int retry;
        int ret;
 
-       pm_runtime_get_sync(&adap->dev);
 #ifdef CONFIG_ARCH_EXYNOS_PM
        exynos_update_ip_idle_status(i2c->idle_ip_index, 0);
 #endif
@@ -868,7 +867,6 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
 #ifdef CONFIG_ARCH_EXYNOS_PM
                        exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
 #endif
-                       pm_runtime_put(&adap->dev);
                        return ret;
                }
 
@@ -881,7 +879,6 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
 #ifdef CONFIG_ARCH_EXYNOS_PM
        exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
 #endif
-       pm_runtime_put(&adap->dev);
        return -EREMOTEIO;
 }
 
@@ -1300,7 +1297,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
                return ret;
        }
 
-       pm_runtime_enable(&i2c->adap.dev);
 
 #ifdef CONFIG_CPU_IDLE
        list_add_tail(&i2c->node, &drvdata_list);
@@ -1321,7 +1317,6 @@ static int s3c24xx_i2c_remove(struct platform_device *pdev)
 
        clk_unprepare(i2c->clk);
 
-       pm_runtime_disable(&i2c->adap.dev);
        pm_runtime_disable(&pdev->dev);
 
        i2c_del_adapter(&i2c->adap);