From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbcD1NVW (ORCPT ); Thu, 28 Apr 2016 09:21:22 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:34936 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752615AbcD1NVT (ORCPT ); Thu, 28 Apr 2016 09:21:19 -0400 From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: Thierry Reding , Stephen Warren , Thierry Reding , Alexandre Courbot , linux-kernel@vger.kernel.org (open list:CLOCKSOURCE, CLOC...), linux-tegra@vger.kernel.org (open list:TEGRA ARCHITECTUR...) Subject: [PATCH 5/5] clocksource/drivers/tegra: Remove unused suspend/resume code Date: Thu, 28 Apr 2016 15:20:48 +0200 Message-Id: <1461849648-12751-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461849648-12751-1-git-send-email-daniel.lezcano@linaro.org> References: <20160428131908.GC5197@linaro.org> <1461849648-12751-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding The tegra_timer_suspend() and tegra_timer_resume() functions are never used, so they can be removed. Signed-off-by: Thierry Reding Signed-off-by: Daniel Lezcano --- 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