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>
This commit is contained in:
committed by
Wolfram Sang
parent
cf7505ef9c
commit
b53f4baf8b
@@ -642,7 +642,7 @@ static int __devinit rcar_i2c_probe(struct platform_device *pdev)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
priv->io = devm_ioremap(dev, res->start, resource_size(res));
|
priv->io = devm_request_and_ioremap(dev, res);
|
||||||
if (!priv->io) {
|
if (!priv->io) {
|
||||||
dev_err(dev, "cannot ioremap\n");
|
dev_err(dev, "cannot ioremap\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
Reference in New Issue
Block a user