Commit fdbd6954 authored by Md Sadre Alam's avatar Md Sadre Alam Committed by Wolfram Sang

i2c: qcom-cci:Use devm_platform_get_and_ioremap_resource()

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: default avatarMd Sadre Alam <quic_mdalam@quicinc.com>
Acked-by: default avatarRobert Foss <rfoss@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 06e98957
......@@ -581,8 +581,7 @@ static int cci_probe(struct platform_device *pdev)
/* Memory */
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
cci->base = devm_ioremap_resource(dev, r);
cci->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
if (IS_ERR(cci->base))
return PTR_ERR(cci->base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment