summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-02-20 20:55:53 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-02-21 21:17:58 +0100
commit6f005ab7f5814bcbb58154167c282f03fc35db6a (patch)
tree8c21f61e19f2c92801452b6222b334ef9d50303c /drivers/power
parentpower: reset: xgene-reboot: Fix a NULL vs IS_ERR() test (diff)
downloadlinux-6f005ab7f5814bcbb58154167c282f03fc35db6a.tar.xz
linux-6f005ab7f5814bcbb58154167c282f03fc35db6a.zip
power: reset: rmobile-reset: Map correct MMIO resource
The registers related to reset generation are located in the second register block. However, the conversion to device life-cycle managed ioremap function accidentally changed the mapping to the first register block. Fixes: 0867276eb12230a5 ("power: reset: rmobile-reset: Use devm_platform_ioremap_resource() helper") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/3b267fb1b303f63248934a1a77bee319e1c44879.1708458882.git.geert+renesas@glider.be Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/reset/rmobile-reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/rmobile-reset.c b/drivers/power/reset/rmobile-reset.c
index 80265608c18e..14682cd59e61 100644
--- a/drivers/power/reset/rmobile-reset.c
+++ b/drivers/power/reset/rmobile-reset.c
@@ -33,7 +33,7 @@ static int rmobile_reset_probe(struct platform_device *pdev)
{
int error;
- sysc_base2 = devm_platform_ioremap_resource(pdev, 0);
+ sysc_base2 = devm_platform_ioremap_resource(pdev, 1);
if (IS_ERR(sysc_base2))
return PTR_ERR(sysc_base2);