Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390176

[PATCH 5/5] clocksource/drivers/tegra: Remove unused suspend/resume code

From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 5/5] clocksource/drivers/tegra: Remove unused suspend/resume code
Date 2016-04-28 15:30 +0200
Message-ID <rsUb2-3LP-47@gated-at.bofh.it> (permalink)
References <rsU1k-3GG-15@gated-at.bofh.it> <rsUb0-3LP-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Thierry Reding <treding@nvidia.com>

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

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/clocksource/tegra20_timer.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c
index 38333ab..7b94ad2 100644
--- a/drivers/clocksource/tegra20_timer.c
+++ b/drivers/clocksource/tegra20_timer.c
@@ -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
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PULL] clockevents for 4.7 Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:20 +0200
  [PATCH 2/5] clocksource/drivers/mtk_timer: Add __init attribute Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:30 +0200
  [PATCH 4/5] clockevents/driversi/mps2: add MPS2 Timer driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:30 +0200
  [PATCH 5/5] clocksource/drivers/tegra: Remove unused suspend/resume code Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:30 +0200
  [PATCH 3/5] dt-bindings: document the MPS2 timer bindings Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:30 +0200
  [PATCH 1/5] clockevents/drivers/dw_apb_timer: Implement ->set_state_oneshot_stopped() Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-28 15:30 +0200

csiph-web