mirror of https://gitee.com/openkylin/linux.git
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:
parent
cf7505ef9c
commit
b53f4baf8b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue