summaryrefslogtreecommitdiffstats
path: root/drivers/reset/reset-sunplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/reset/reset-sunplus.c')
-rw-r--r--drivers/reset/reset-sunplus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/reset/reset-sunplus.c b/drivers/reset/reset-sunplus.c
index 2f23ecaa7b..df58decab6 100644
--- a/drivers/reset/reset-sunplus.c
+++ b/drivers/reset/reset-sunplus.c
@@ -176,8 +176,7 @@ static int sp_reset_probe(struct platform_device *pdev)
if (!reset)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- reset->base = devm_ioremap_resource(dev, res);
+ reset->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(reset->base))
return PTR_ERR(reset->base);