Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: s3c2410: remove superfluous runtime PM calls

RuntimePM of the adapter device is now taken care of by the core. So, we
can remove these calls.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Wolfram Sang and committed by
Wolfram Sang
2fe3e518 9f924169

-6
-6
drivers/i2c/busses/i2c-s3c2410.c
··· 784 784 int retry; 785 785 int ret; 786 786 787 - pm_runtime_get_sync(&adap->dev); 788 787 ret = clk_enable(i2c->clk); 789 788 if (ret) 790 789 return ret; ··· 794 795 795 796 if (ret != -EAGAIN) { 796 797 clk_disable(i2c->clk); 797 - pm_runtime_put(&adap->dev); 798 798 return ret; 799 799 } 800 800 ··· 803 805 } 804 806 805 807 clk_disable(i2c->clk); 806 - pm_runtime_put(&adap->dev); 807 808 return -EREMOTEIO; 808 809 } 809 810 ··· 1253 1256 return ret; 1254 1257 } 1255 1258 1256 - pm_runtime_enable(&i2c->adap.dev); 1257 - 1258 1259 dev_info(&pdev->dev, "%s: S3C I2C adapter\n", dev_name(&i2c->adap.dev)); 1259 1260 return 0; 1260 1261 } ··· 1268 1273 1269 1274 clk_unprepare(i2c->clk); 1270 1275 1271 - pm_runtime_disable(&i2c->adap.dev); 1272 1276 pm_runtime_disable(&pdev->dev); 1273 1277 1274 1278 s3c24xx_i2c_deregister_cpufreq(i2c);