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

Path csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 5/5] clocksource/drivers/tegra: Remove unused suspend/resume code
Date Thu, 28 Apr 2016 15:30:04 +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>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iPrhdnzWrXqqJMVsW9A7IbJBK7TndgyLVOAblbBMElk=; b=Q6UwI9sLEkrTCLuXeLg1bMUDLwadzYUzHcSRKM2sipsYlYQNqkP3VguVjXX+WaU1yL ixiXJ6LM0eYjvCGiMsPtH0UtGmtA3KKn4txaou9lP2N02E94rmu+ERK0sOP9vNbFkqoy jWT8LNSp/SV+gs3NeyQQ+2ZuITWOq0G2+pYJY=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iPrhdnzWrXqqJMVsW9A7IbJBK7TndgyLVOAblbBMElk=; b=Nb4NKJo64ESwwCb4cUV1gxobDAlueToFpeFLINqrKxQ8DpKDfLXTZXi/0s2t8EFiCV x2fnCBPQf4Ou3yZqMIZvS040R9FHBZdMP90HMtwHJSIEs4pQeySzYXXcxT52dWuuN+4V G1sDHWTN7Q6J9+/ey2JD1EIj0cYuvkpX75u5kNTEoxgqLx2N0hOw84qoEFggwU29rrE2 koTLOFK6JCwEzM5rXeooWPvINMtTCxZ9aL8HxCWd4zXosWgufp1flf0hnOqSNhcw/W/k GCkEIO4kAnjEkBsnulZfORlcVTd88agxb4VjlcpxkFtIrZdZlLS8Kq+g/Yk2KRoVv0/h B6qA==
X-Gm-Message-State AOPr4FUK34m6PmeEsEmusxJe/mlu9MVOwEE0QKlvPE0vPk0JKLB2QgM+kG8i2guxJ04HX+ei
X-Received by 10.28.0.87 with SMTP id 84mr29898373wma.68.1461849677945; Thu, 28 Apr 2016 06:21:17 -0700 (PDT)
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 35
Organization linux.* mail to news gateway
X-Original-Cc Thierry Reding <treding@nvidia.com>, Stephen Warren <swarren@wwwdotorg.org>, Thierry Reding <thierry.reding@gmail.com>, Alexandre Courbot <gnurou@gmail.com>, linux-kernel@vger.kernel.org (open list:CLOCKSOURCE, CLOC...), linux-tegra@vger.kernel.org (open list:TEGRA ARCHITECTUR...)
X-Original-Date Thu, 28 Apr 2016 15:20:48 +0200
X-Original-Message-ID <1461849648-12751-5-git-send-email-daniel.lezcano@linaro.org>
X-Original-References <20160428131908.GC5197@linaro.org> <1461849648-12751-1-git-send-email-daniel.lezcano@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1390176

Show key headers only | 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