Skip to contentSkip to conversation

clocksource/tegra: Remove unused suspend/resume code

PATCH In review Thierry Reding 2 participants 2 messages Apr 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource/tegra: Remove unused suspend/resume code

From: Thierry Reding <[email protected]>

The tegra_timer_suspend() and tegra_timer_resume() functions are never used, so they can be removed.

---
 drivers/clocksource/tegra20_timer.c | 14 --------------
 1 file changed, 14 deletions(-)
drivers/clocksource/tegra20_timer.c +0 -14
index 38333aba3055..7b94ad2ab278 100644
@@ -258,17 +258,3 @@ static void __init tegra20_init_rtc(struct device_node *np)
 	register_persistent_clock(NULL, tegra_read_persistent_clock64);
 }
 CLOCKSOURCE_OF_DECLARE(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc);
-
-#ifdef CONFIG_PM
-static u32 usec_config;
-
-void tegra_timer_suspend(void)
-{
-	usec_config = timer_readl(TIMERUS_USEC_CFG);
-}
-
-void tegra_timer_resume(void)
-{
-	timer_writel(usec_config, TIMERUS_USEC_CFG);
-}
-#endif
Signature · 1 line
2.8.0