diff options
author | Md Sadre Alam <[email protected]> | 2023-03-06 20:15:22 +0530 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2023-06-08 20:52:39 +0200 |
commit | fdbd69549be8760060952e431ba940112ea623cc (patch) | |
tree | 9866b612614cf8d90f11f1730b3322cbe24be6f1 | |
parent | 06e989578232da33a7fe96b04191b862af8b2cec (diff) |
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 <[email protected]>
Acked-by: Robert Foss <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
-rw-r--r-- | drivers/i2c/busses/i2c-qcom-cci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index 58860014e068..622dc14add9d 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -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); |