|
@@ -287,7 +287,8 @@ static int c_can_plat_probe(struct platform_device *pdev)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
|
|
|
|
|
|
+ priv->raminit_ctrlreg = devm_ioremap(&pdev->dev, res->start,
|
|
|
|
+ resource_size(res));
|
|
if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
|
|
if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
|
|
dev_info(&pdev->dev, "control memory is not used for raminit\n");
|
|
dev_info(&pdev->dev, "control memory is not used for raminit\n");
|
|
else
|
|
else
|