summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-07-04 21:03:05 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-07-19 23:28:59 +0200
commit79d2a09d953fd1939b16e4baf83ab60d2b305e59 (patch)
treef9acbf40fa982c73f1c77ba5bc037418d7d9fee7 /drivers/power
parent5d002da7296c50d3fcc50af29bf1e507585703e0 (diff)
power: reset: brcm-kona: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/reset/brcm-kona-reset.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/power/reset/brcm-kona-reset.c b/drivers/power/reset/brcm-kona-reset.c
index 64e241c77f83..d05728b1db09 100644
--- a/drivers/power/reset/brcm-kona-reset.c
+++ b/drivers/power/reset/brcm-kona-reset.c
@@ -38,9 +38,7 @@ static struct notifier_block kona_reset_nb = {
static int kona_reset_probe(struct platform_device *pdev)
{
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
- kona_reset_base = devm_ioremap_resource(&pdev->dev, res);
+ kona_reset_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(kona_reset_base))
return PTR_ERR(kona_reset_base);