diff options
| author | Thierry Reding <treding@nvidia.com> | 2016-04-28 08:45:28 -0400 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-04-28 09:09:08 -0400 |
| commit | 9999c5fc014adcc4278adddb73888c301be7b9f7 (patch) | |
| tree | c82fdcbb5051f6122172ba99826800b814986baa /drivers/clocksource | |
| parent | 0302637f1860400cfe0895e4355a5fecb89e0347 (diff) | |
clocksource/drivers/tegra: Remove unused suspend/resume code
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>
Diffstat (limited to 'drivers/clocksource')
| -rw-r--r-- | drivers/clocksource/tegra20_timer.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c index 38333aba3055..7b94ad2ab278 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) | |||
| 258 | register_persistent_clock(NULL, tegra_read_persistent_clock64); | 258 | register_persistent_clock(NULL, tegra_read_persistent_clock64); |
| 259 | } | 259 | } |
| 260 | CLOCKSOURCE_OF_DECLARE(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc); | 260 | CLOCKSOURCE_OF_DECLARE(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc); |
| 261 | |||
| 262 | #ifdef CONFIG_PM | ||
| 263 | static u32 usec_config; | ||
| 264 | |||
| 265 | void tegra_timer_suspend(void) | ||
| 266 | { | ||
| 267 | usec_config = timer_readl(TIMERUS_USEC_CFG); | ||
| 268 | } | ||
| 269 | |||
| 270 | void tegra_timer_resume(void) | ||
| 271 | { | ||
| 272 | timer_writel(usec_config, TIMERUS_USEC_CFG); | ||
| 273 | } | ||
| 274 | #endif | ||
