From patchwork Sun Dec 7 12:26:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5C7399F1C5 for ; Sun, 7 Dec 2014 12:28:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 907FF20154 for ; Sun, 7 Dec 2014 12:28:50 +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 BDFD0200DC for ; Sun, 7 Dec 2014 12:28:49 +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 1XxatA-0006iL-Cg; Sun, 07 Dec 2014 12:24:36 +0000 Received: from mail-wg0-f50.google.com ([74.125.82.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xxat6-0006fT-Sl for linux-arm-kernel@lists.infradead.org; Sun, 07 Dec 2014 12:24:33 +0000 Received: by mail-wg0-f50.google.com with SMTP id k14so4187713wgh.23 for ; Sun, 07 Dec 2014 04:24:10 -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=a6mb4UCNGKFHg2ogVpHGwk8gx11zwnUZYx5QTB8rLSE=; b=ZYOKrmTeP4Pb68sgX8mkmHKNQiPkQ3g+hFG1Vtz3H5+tZ7jhXvaP9Wq1V6uG8PLZhS HfmfhjNYwe7Ui0TwNmRnVz+JkGboo9HCsQ7BKTHBxeQtMhmGaVLTOnIsCVx47JZiXidH bnkaxzbO6IzMnRBILIOYkLZpPVde5cLvVHxg9adBwPl8A87Wc6mZ/mqs9k8SV6QPQqxn jVVMQ6aCL8YZMmqcxNKkocB+H4luyYokEnW6SuIo0TaYb5L8g3TP5qR+3FmGjoIGXt7D WjfDj7sNIpiawIUPOk1iGH4nZZK+QjLnq6yFR19aU3HWZNy35urO0tMHUraG37LBKx+N PhQQ== X-Gm-Message-State: ALoCoQnWnMCbNL6b1TJXWQr7Dn2WO0mKzMqlDLo0b1p095yFqNZARdf1WKlkayVRQA2rDJVFHF1r X-Received: by 10.180.186.40 with SMTP id fh8mr17414778wic.40.1417955050405; Sun, 07 Dec 2014 04:24:10 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id j2sm52389447wjs.28.2014.12.07.04.24.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 04:24:09 -0800 (PST) From: Rickard Strandqvist To: Tony Lindgren , Russell King Subject: [PATCH] arch: arm: mach-omap1: irq.c: Remove unused function Date: Sun, 7 Dec 2014 13:26:49 +0100 Message-Id: <1417955210-10576-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_042433_086350_93C074D7 X-CRM114-Status: GOOD ( 10.12 ) 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 irq_bank_readl() 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/irq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-omap1/irq.c b/arch/arm/mach-omap1/irq.c index 122ef67..a8a533d 100644 --- a/arch/arm/mach-omap1/irq.c +++ b/arch/arm/mach-omap1/irq.c @@ -64,11 +64,6 @@ u32 omap_irq_flags; static unsigned int irq_bank_count; static struct omap_irq_bank *irq_banks; -static inline unsigned int irq_bank_readl(int bank, int offset) -{ - return omap_readl(irq_banks[bank].base_reg + offset); -} - static inline void irq_bank_writel(unsigned long value, int bank, int offset) { omap_writel(value, irq_banks[bank].base_reg + offset);