diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-04 14:02:08 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2023-11-28 17:19:39 +0100 |
commit | 49994d704d39bca20f15b4af125441c59520e887 (patch) | |
tree | 63b712aeb6030bf55a521690d09c7802da9c6c73 /drivers/reset/reset-qcom-pdc.c | |
parent | reset: qcom-aoss: Convert to devm_platform_ioremap_resource() (diff) | |
download | linux-49994d704d39bca20f15b4af125441c59520e887.tar.xz linux-49994d704d39bca20f15b4af125441c59520e887.zip |
reset: qcom: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230704120211.38122-4-frank.li@vivo.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-qcom-pdc.c')
-rw-r--r-- | drivers/reset/reset-qcom-pdc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/reset/reset-qcom-pdc.c b/drivers/reset/reset-qcom-pdc.c index a3aae3f902e6..dce1fc1a68ad 100644 --- a/drivers/reset/reset-qcom-pdc.c +++ b/drivers/reset/reset-qcom-pdc.c @@ -114,7 +114,6 @@ static int qcom_pdc_reset_probe(struct platform_device *pdev) struct qcom_pdc_reset_data *data; struct device *dev = &pdev->dev; void __iomem *base; - struct resource *res; desc = device_get_match_data(&pdev->dev); if (!desc) @@ -125,8 +124,7 @@ static int qcom_pdc_reset_probe(struct platform_device *pdev) return -ENOMEM; data->desc = desc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); |