@@ -190,8 +190,9 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev)
if (!res)
return -ENODEV;
- size = resource_size(res);
- ci->base = base = devm_ioremap(&pdev->dev, res->start, size);
+ res->start += 0x200;
+ res->end -= 0x200;
+ ci->base = base = devm_ioremap_resource(&pdev->dev, res);
if (!base)
return -ENOMEM;
@@ -887,6 +887,8 @@ static int ci_hdrc_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ if (resource_size(res) > 0x200)
+ res->end = res->start + 0x200;
base = devm_ioremap_resource(dev, res);
if (IS_ERR(base))
return PTR_ERR(base);