From patchwork Thu Jan 1 17:55:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557561 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C6439BF6C3 for ; Thu, 1 Jan 2015 17:54:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CF18201C8 for ; Thu, 1 Jan 2015 17:54:38 +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 3A6FC201BC for ; Thu, 1 Jan 2015 17:54:37 +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 1Y6jvJ-0001MG-4b; Thu, 01 Jan 2015 17:52:37 +0000 Received: from mail-wg0-f43.google.com ([74.125.82.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6jvG-0001I4-I5 for linux-arm-kernel@lists.infradead.org; Thu, 01 Jan 2015 17:52:35 +0000 Received: by mail-wg0-f43.google.com with SMTP id k14so5531380wgh.2 for ; Thu, 01 Jan 2015 09:52:11 -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=512LCj+flWUzfzxH9d9DGowziwlqPBolZ30Mpdif82Y=; b=B0TgosfvjpjWIiR2ubfLVMVKGYitj942CdQPR8OzDhU0DansoXF3/0A8KdkvaILHht 2NoKsRsOxw8Ld+YOVQu/2GkDe2/2uXvA2wASWED55lFsd4pXFS5T7iIVMLURTS4UTcQ8 jQN0k2Wfl3E+eVcihRXK2cnVHvfuAizII0IsBc0rFGP/4wyr1NZcIeVu+PgTg96R52Lm AwXpvY5/jj4qZykPVcwBU+qFuWSCzX91Qkqsw+TUVclrUfqD5XvrzkzAJE5fRQccZECF zjJwkZoTseuLjjmEPi/L34KgjEvnblBYgGVIZiIapCC/VXInjC5euuuipiyRadUsdEul WUFg== X-Gm-Message-State: ALoCoQljVDG79VxNE8aebb4vojIit5HPxPegKozsRYkQsTPZH9prauAiFqbeaSNddNhAoS6n9Qbp X-Received: by 10.194.59.33 with SMTP id w1mr143289845wjq.123.1420134731739; Thu, 01 Jan 2015 09:52:11 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id u13sm59043540wjr.26.2015.01.01.09.52.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:52:11 -0800 (PST) From: Rickard Strandqvist To: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH] arch: arm: mach-rpc: ecard: Remove some unused functions Date: Thu, 1 Jan 2015 18:55:12 +0100 Message-Id: <1420134912-1742-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-20150101_095234_775109_05258B2A X-CRM114-Status: GOOD ( 10.34 ) X-Spam-Score: -0.7 (/) Cc: linux-kernel@vger.kernel.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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Removes some functions that are not used anywhere: ecard_disablefiq() ecard_enablefiq() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/arm/mach-rpc/ecard.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index fcb1d59..e5c8caf 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -462,35 +462,6 @@ static struct irq_chip ecard_chip = { .irq_unmask = ecard_irq_unmask, }; -void ecard_enablefiq(unsigned int fiqnr) -{ - ecard_t *ec = slot_to_ecard(fiqnr); - - if (ec) { - if (!ec->ops) - ec->ops = &ecard_default_ops; - - if (ec->claimed && ec->ops->fiqenable) - ec->ops->fiqenable(ec, fiqnr); - else - printk(KERN_ERR "ecard: rejecting request to " - "enable FIQs for %d\n", fiqnr); - } -} - -void ecard_disablefiq(unsigned int fiqnr) -{ - ecard_t *ec = slot_to_ecard(fiqnr); - - if (ec) { - if (!ec->ops) - ec->ops = &ecard_default_ops; - - if (ec->ops->fiqdisable) - ec->ops->fiqdisable(ec, fiqnr); - } -} - static void ecard_dump_irq_state(void) { ecard_t *ec;