mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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: Md Sadre Alam <quic_mdalam@quicinc.com> Acked-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
parent
06e9895782
commit
fdbd69549b
1 changed files with 1 additions and 2 deletions
|
@ -581,8 +581,7 @@ static int cci_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
/* Memory */
|
/* Memory */
|
||||||
|
|
||||||
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
cci->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
|
||||||
cci->base = devm_ioremap_resource(dev, r);
|
|
||||||
if (IS_ERR(cci->base))
|
if (IS_ERR(cci->base))
|
||||||
return PTR_ERR(cci->base);
|
return PTR_ERR(cci->base);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue