summaryrefslogtreecommitdiff
path: root/drivers/power/reset/brcm-kona-reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/reset/brcm-kona-reset.c')
-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);