summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-10-10 23:32:36 -0700
committerWolfram Sang <w.sang@pengutronix.de>2012-11-13 09:27:28 +0100
commitb53f4baf8b26303fc75ef3b00cf5e7398b58efd4 (patch)
treee6b55b83d5b2510b7ea927619ba45d4ee0ef17cb /drivers/i2c
parentcf7505ef9cd1349dfff0b2aeb9bc62f54c14e03d (diff)
downloadblackbird-op-linux-b53f4baf8b26303fc75ef3b00cf5e7398b58efd4.tar.gz
blackbird-op-linux-b53f4baf8b26303fc75ef3b00cf5e7398b58efd4.zip
i2c: rcar: used devm_request_and_ioremap() instead of devm_ioremap()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-rcar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c
index f9399d163af2..2bce56de39e4 100644
--- a/drivers/i2c/busses/i2c-rcar.c
+++ b/drivers/i2c/busses/i2c-rcar.c
@@ -642,7 +642,7 @@ static int __devinit rcar_i2c_probe(struct platform_device *pdev)
if (ret < 0)
return ret;
- priv->io = devm_ioremap(dev, res->start, resource_size(res));
+ priv->io = devm_request_and_ioremap(dev, res);
if (!priv->io) {
dev_err(dev, "cannot ioremap\n");
return -ENODEV;
OpenPOWER on IntegriCloud