From patchwork Sat Dec 7 22:30:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 298719 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-fa0-x23e.google.com (mail-fa0-x23e.google.com [IPv6:2a00:1450:4001:c02::23e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B339A2C00CD for ; Sun, 8 Dec 2013 09:31:19 +1100 (EST) Received: by mail-fa0-f62.google.com with SMTP id v1sf191115fav.27 for ; Sat, 07 Dec 2013 14:31:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=XkS5LF6vVqIy87J67UVTYwOpjtbuW/SfgRuL3Qq5gHU=; b=n8ypwqK+v0jSaF3fYy1te0aAWAKoN1BZIPMb16wKPzxBm/jdAazQeoe3QHiIY9JvSG 0CwDeqOnGlvIo4dYnSuIbY13UpkROqelj39gbl3NZaRpwmlXovuOCYONuO8O59Cl9Ha9 CwVNR4s8j02O9RIQfhXslXdd2TTYsfo3GpO5Hnh+57W5bA2B4jeKiGoCvyd57jtAbe2I HeeakU0ndqyEjFJK0Q3BKobi2JL0ebTIYWOc1SBwSQNWOdZ2efJMnHIr50HNbsxsW5AO k5GGO664bhYiK5wXdV8q5L3YTXx4nab6qAhONxc0ZPNEWUfjVTN9L3bfYhtlSEebCc2H 2pbg== X-Received: by 10.180.38.99 with SMTP id f3mr66149wik.9.1386455474899; Sat, 07 Dec 2013 14:31:14 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.99.230 with SMTP id et6ls292063wib.48.gmail; Sat, 07 Dec 2013 14:31:13 -0800 (PST) X-Received: by 10.205.86.131 with SMTP id as3mr2239880bkc.5.1386455473682; Sat, 07 Dec 2013 14:31:13 -0800 (PST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de. [2001:6f8:1178:4:290:27ff:fe1d:cc33]) by gmr-mx.google.com with ESMTPS id ls5si193249wic.2.2013.12.07.14.31.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 07 Dec 2013 14:31:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of ukl@pengutronix.de designates 2001:6f8:1178:4:290:27ff:fe1d:cc33 as permitted sender) client-ip=2001:6f8:1178:4:290:27ff:fe1d:cc33; Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VpQOo-0005zR-Us; Sat, 07 Dec 2013 23:30:58 +0100 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1VpQOm-00064r-K8; Sat, 07 Dec 2013 23:30:56 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Alessandro Zummo , Eric Miao , Russell King Cc: kernel@pengutronix.de, rtc-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, Haojian Zhuang , Robert Jarzmik , Andrew Morton Subject: [rtc-linux] [PATCH v2] rtc: pxa: drop unused #define TIMER_FREQ Date: Sat, 7 Dec 2013 23:30:49 +0100 Message-Id: <1386455449-19678-1-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <87mwkc77d8.fsf@free.fr> References: <87mwkc77d8.fsf@free.fr> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: rtc-linux@googlegroups.com X-Original-Sender: u.kleine-koenig@pengutronix.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of ukl@pengutronix.de designates 2001:6f8:1178:4:290:27ff:fe1d:cc33 as permitted sender) smtp.mail=ukl@pengutronix.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , It seems this symbol was unused since the driver was introduced in commit dc94436 (rtc: driver for pxa27x and pxa3xx SoC) back in 2009. As a by-product this patch makes the driver stop "using" the symbol CLOCK_TICK_RATE which is about to be removed very soon (for ARM). Signed-off-by: Uwe Kleine-König Acked-by: Robert Jarzmik --- Changes since (implicit) v1, sent with Message-id:1383942318-12569-1-git-send-email-u.kleine-koenig@pengutronix.de: - drop define instead of s/CLOCK_TICK_RATE/get_clock_tick_rate()/; thanks to Robert Jarzmik for pointing that out. Note I intend to send this patch as part of a series that removes (and so CLOCK_TICK_RATE) on ARM. So dear maintainer please don't take this patch but give your blessing that I can take it. (Note, I'm not sure who's ack I need here; according to MAINTAINERS Alessandro Zummo maintains the rtc subsystem, but he doesn't seem to be that active for some time and it's mostly akpm who takes patches.) drivers/rtc/rtc-pxa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index a355f2b..cccbf9d 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c @@ -32,7 +32,6 @@ #include -#define TIMER_FREQ CLOCK_TICK_RATE #define RTC_DEF_DIVIDER (32768 - 1) #define RTC_DEF_TRIM 0 #define MAXFREQ_PERIODIC 1000