From patchwork Sun Dec 7 12:28:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3619ABEEA8 for ; Sun, 7 Dec 2014 12:28:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7665420154 for ; Sun, 7 Dec 2014 12:28:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7AD27200DC for ; Sun, 7 Dec 2014 12:28:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XxavB-0008B4-LT; Sun, 07 Dec 2014 12:26:41 +0000 Received: from mail-wi0-f175.google.com ([209.85.212.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xxav8-00086P-QA for linux-arm-kernel@lists.infradead.org; Sun, 07 Dec 2014 12:26:39 +0000 Received: by mail-wi0-f175.google.com with SMTP id l15so2442000wiw.14 for ; Sun, 07 Dec 2014 04:26:16 -0800 (PST) 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; bh=dCoFprPAUA07Gz3lMdRy33S/AWlM5vQ5+oSpeKlDr0U=; b=QdgI3VVQdCh6I7QMX3MnR5Jj2eRt0+I3WY8ONDlaOkXAtcrdln4Iw4tbeqVz4VwDuA I8rae8qc8a/a0tMc+/ndZVBCHjghiCTPhNszRjzEE8TY1VZAduNLeX+Hjz8idnHQq1tX LN/fwUTgX+d+BxKqKmt6QHg4oVClJveRphqcaYAZOqGQnBWPadCrkaI7lHESm0hWNLrf AAgeK4CujeN3bVEBHGc7Z3+Dk4PxOwRJfMQtWsFhPwqmIfMjG74IYiwcFILPQtxFXvUS p/zfMjtea6TPaBC6zAkmEIGFjFvIyOavxivFtvI/wF0C1yw/yxxLdChijQyRjahNBjit cXPw== X-Gm-Message-State: ALoCoQn7scBwXL3fbZKTPrwc2xVwPvKCu1Sy+FCHdcfaHJkq731zRvg0yMvt3gQWgdfP22/k5vaZ X-Received: by 10.180.90.165 with SMTP id bx5mr17376729wib.15.1417955176424; Sun, 07 Dec 2014 04:26:16 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id iz19sm5586093wic.8.2014.12.07.04.26.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 04:26:15 -0800 (PST) From: Rickard Strandqvist To: Tony Lindgren , Russell King Subject: [PATCH] arch: arm: mach-omap1: timer32k.c: Remove unused function Date: Sun, 7 Dec 2014 13:28:56 +0100 Message-Id: <1417955336-10751-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141207_042639_004491_A7C79BC5 X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -0.7 (/) Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rickard Strandqvist X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function omap_32k_timer_read() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/arm/mach-omap1/timer32k.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-omap1/timer32k.c b/arch/arm/mach-omap1/timer32k.c index 107e7ab..36bf174 100644 --- a/arch/arm/mach-omap1/timer32k.c +++ b/arch/arm/mach-omap1/timer32k.c @@ -91,11 +91,6 @@ static inline void omap_32k_timer_write(int val, int reg) omap_writew(val, OMAP1_32K_TIMER_BASE + reg); } -static inline unsigned long omap_32k_timer_read(int reg) -{ - return omap_readl(OMAP1_32K_TIMER_BASE + reg) & 0xffffff; -} - static inline void omap_32k_timer_start(unsigned long load_val) { if (!load_val)