diff mbox series

[21/25] clocksource/drivers/tegra: Restore base address before cleanup

Message ID 20190626144651.16742-21-daniel.lezcano@linaro.org
State New
Headers show
Series None | expand

Commit Message

Daniel Lezcano June 26, 2019, 2:46 p.m. UTC
From: Dmitry Osipenko <digetx@gmail.com>

We're adjusting the timer's base for each per-CPU timer to point to the
actual start of the timer since device-tree defines a compound registers
range that includes all of the timers. In this case the original base
need to be restore before calling iounmap to unmap the proper address.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
 drivers/clocksource/timer-tegra.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/drivers/clocksource/timer-tegra.c b/drivers/clocksource/timer-tegra.c
index cc90f22c559b..8e70f38f1898 100644
--- a/drivers/clocksource/timer-tegra.c
+++ b/drivers/clocksource/timer-tegra.c
@@ -347,6 +347,8 @@  static int __init tegra_init_timer(struct device_node *np, bool tegra20,
+	to->of_base.base = timer_reg_base;