From patchwork Sat Jan 3 16:52:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5562031 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CB1219F2ED for ; Sat, 3 Jan 2015 16:52:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4F7A201EC for ; Sat, 3 Jan 2015 16:52:10 +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 007C6201E4 for ; Sat, 3 Jan 2015 16:52:09 +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 1Y7Rtt-00043e-8w; Sat, 03 Jan 2015 16:50:05 +0000 Received: from mail-we0-f176.google.com ([74.125.82.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y7Rto-0003qb-EL for linux-arm-kernel@lists.infradead.org; Sat, 03 Jan 2015 16:50:01 +0000 Received: by mail-we0-f176.google.com with SMTP id w61so5778041wes.35 for ; Sat, 03 Jan 2015 08:49:37 -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=2txVrLmEHBjXW0vCSCO0QW6fDLVheAa8XlnBzULeEzs=; b=j507MF+e1tzo0rljYvr4nhIpJHgIfwIA7+fZNbmTNDakDGKnapQekaBQuRo1vBcc6Y z+AZ7xg52Xer/Oz466yIA60cBT8UJYj2edI57BRlicjsUeMzul8b1OoKjXKC1YmaL5KW K/ZRsUVVAM4l5e+Feu4JPeWCMt3x0wCZuIW1XbJS7+n+lX3oBx4otWK35lLDoScsiNHC XeTgiaC5MFFZD9GYU8ZIvNag9c96qDtAhLmsYHEcKYKTV6323f2H6efglwmqdhWiW/H/ 4AMUBzjym/1WRF3wKwS4ztkJvx7uAGjsXdqbv3LPBm8vIAbMxyC/fnfxiJ0VXLlFw/+l wIkw== X-Gm-Message-State: ALoCoQm2dtmvz/yEK+I1SHZwY0FDapWpN1fpskl2JTbMqoyaXZ7N714Nl084uiwTCP1TX73Pz3KW X-Received: by 10.194.75.195 with SMTP id e3mr105940356wjw.44.1420303777631; Sat, 03 Jan 2015 08:49:37 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id i3sm3083364wie.23.2015.01.03.08.49.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jan 2015 08:49:36 -0800 (PST) From: Rickard Strandqvist To: Russell King , Linus Walleij Subject: [PATCH] arm: mach-versatile: core: Remove unused function Date: Sat, 3 Jan 2015 17:52:39 +0100 Message-Id: <1420303959-12898-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-20150103_085000_630519_D9EFFB63 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Tomi Valkeinen , 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=-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 Remove the function versatile_leds_event() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Reviewed-by: Linus Walleij --- arch/arm/mach-versatile/core.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 08fb8c8..6ea09fe 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c @@ -728,43 +728,6 @@ struct of_dev_auxdata versatile_auxdata_lookup[] __initdata = { }; #endif -#ifdef CONFIG_LEDS -#define VA_LEDS_BASE (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_LED_OFFSET) - -static void versatile_leds_event(led_event_t ledevt) -{ - unsigned long flags; - u32 val; - - local_irq_save(flags); - val = readl(VA_LEDS_BASE); - - switch (ledevt) { - case led_idle_start: - val = val & ~VERSATILE_SYS_LED0; - break; - - case led_idle_end: - val = val | VERSATILE_SYS_LED0; - break; - - case led_timer: - val = val ^ VERSATILE_SYS_LED1; - break; - - case led_halted: - val = 0; - break; - - default: - break; - } - - writel(val, VA_LEDS_BASE); - local_irq_restore(flags); -} -#endif /* CONFIG_LEDS */ - void versatile_restart(enum reboot_mode mode, const char *cmd) { void __iomem *sys = __io_address(VERSATILE_SYS_BASE);