From patchwork Sun Dec 7 01:19:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451041 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 2F3449F319 for ; Sun, 7 Dec 2014 01:19:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57C752012D for ; Sun, 7 Dec 2014 01:19:18 +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 57877200E3 for ; Sun, 7 Dec 2014 01:19:17 +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 1XxQTJ-0000T9-9L; Sun, 07 Dec 2014 01:17:13 +0000 Received: from mail-wg0-f48.google.com ([74.125.82.48]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XxQTE-0000Jy-Qx for linux-arm-kernel@lists.infradead.org; Sun, 07 Dec 2014 01:17:09 +0000 Received: by mail-wg0-f48.google.com with SMTP id y19so3663222wgg.7 for ; Sat, 06 Dec 2014 17:16:47 -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=qtyQERO2Lr7aWJdCuJ2LH7VKgywk6Uy4TbFmsvs3CVw=; b=DpnPekaKptQW2/3Ejc58n+lm1nt3PDQpTyO9bdxiQ3wqsrFBS3onKjW84OOlUtxeBn VR5srxWSr2195RzzqKpcuHAwOa2Pa9DRCvZRqjEnv9V1F+AAnfJHK/ymhbmoaqIWFg2T gp/kN+1rwJQ9cMN5TCGBhm+fFLNisK+SIIcFMAO3+/zNbuUqooS15io/otw3BqJm8jJr tLfGLcxXL7u2reu4ZSh+4C5pI6o2moUZXHQMSzozjRBYwCWlixw1IRxAe2pvk2X/60Os R05taRgFP+vHbkddS8pq3EyGUeXL8ucFBROarP3gtnfSuVmgN1X+fDGezjR5zIQMe9Kn RVVw== X-Gm-Message-State: ALoCoQltK+MxC+USWAIT2KQXa6yB2ekAfPCE5sJJd1pS2KU9uhPQWqR/8mM79kOYTdCRmdX/B3fh X-Received: by 10.194.63.198 with SMTP id i6mr27704768wjs.90.1417915007179; Sat, 06 Dec 2014 17:16:47 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id gy8sm3790075wib.23.2014.12.06.17.16.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Dec 2014 17:16:46 -0800 (PST) From: Rickard Strandqvist To: Shawn Guo , Sascha Hauer Subject: [PATCH] arch: arm: mach-mxs: mach-mxs.c: Remove unused function Date: Sun, 7 Dec 2014 02:19:27 +0100 Message-Id: <1417915167-8750-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-20141206_171709_020167_3E4423F9 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Russell King , Rickard Strandqvist , linux-kernel@vger.kernel.org, Rob Herring , Grant Likely , linux-arm-kernel@lists.infradead.org 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 __mxs_togl() 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-mxs/mach-mxs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 2e7cec8..3362f48 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c @@ -72,11 +72,6 @@ static inline void __mxs_clrl(u32 mask, void __iomem *reg) __raw_writel(mask, reg + MXS_CLR_ADDR); } -static inline void __mxs_togl(u32 mask, void __iomem *reg) -{ - __raw_writel(mask, reg + MXS_TOG_ADDR); -} - #define OCOTP_WORD_OFFSET 0x20 #define OCOTP_WORD_COUNT 0x20