From: Kuninori Morimoto Date: Thu, 11 Oct 2012 06:32:36 +0000 (-0700) Subject: i2c: rcar: used devm_request_and_ioremap() instead of devm_ioremap() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b53f4baf8b26303fc75ef3b00cf5e7398b58efd4;p=linux-beck.git i2c: rcar: used devm_request_and_ioremap() instead of devm_ioremap() Signed-off-by: Kuninori Morimoto Signed-off-by: Wolfram Sang --- 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;