Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a86ae9ff authored by Mark Brown's avatar Mark Brown Committed by Wolfram Sang
Browse files

i2c-s3c2410: Use plain pm_runtime_put()



There's no point in using _sync() as we don't really care if the suspend
has completed immediately.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent b900ba4c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -609,7 +609,7 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,


		if (ret != -EAGAIN) {
		if (ret != -EAGAIN) {
			clk_disable(i2c->clk);
			clk_disable(i2c->clk);
			pm_runtime_put_sync(&adap->dev);
			pm_runtime_put(&adap->dev);
			return ret;
			return ret;
		}
		}


@@ -619,7 +619,7 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
	}
	}


	clk_disable(i2c->clk);
	clk_disable(i2c->clk);
	pm_runtime_put_sync(&adap->dev);
	pm_runtime_put(&adap->dev);
	return -EREMOTEIO;
	return -EREMOTEIO;
}
}