From patchwork Thu Jan 1 16:45:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557161 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 8C93CBF6C3 for ; Thu, 1 Jan 2015 16:45:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD15020225 for ; Thu, 1 Jan 2015 16:45:52 +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 C4E79201FB for ; Thu, 1 Jan 2015 16:45:51 +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 1Y6ipS-0000OG-59; Thu, 01 Jan 2015 16:42:30 +0000 Received: from mail-we0-f180.google.com ([74.125.82.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6ipP-0000NL-7W for linux-arm-kernel@lists.infradead.org; Thu, 01 Jan 2015 16:42:27 +0000 Received: by mail-we0-f180.google.com with SMTP id w62so3572467wes.25 for ; Thu, 01 Jan 2015 08:42:04 -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=+uzXuB7ZhiRahsPLiiBprjDuSWhE6a0YKHOxOeQkEto=; b=axfjXlx23hXIJ6bS3udH+v2yVPjC4YKE0kQt0ZV6GEGNuoKMNYtcy5rCekf4x3dS4e 6to2zRmtZhZH20KGs6pxpbbk9ITd6rbkjAqT8KxQWtr4aSnzIQBJJ3EHQlTspA1M8xeP 6y30EruWOlzjO8FtyXb02A4WB7QTw+j4oLGDSJ050owVpqt49hLkv0BN2nP1mpsNjyGT c/PLEAfA3uWW6lFgr7v/1+LcQG4rMuBrUCriBvJC5LTU84FUGPo9KPxi4bG9WxQc3xEv oYT6R0PFOwTlhpjX1H2g50LFG9rwkrIOsCNXgqRFgBQYlqtZuxsszfFThsBzGnF9oz4X Fc8w== X-Gm-Message-State: ALoCoQnS9EqUgqY6uMdcOAlSdn85aOVB/8Lk75E6RC234VzEahMlwc4cIBri3YH2SwA0hNw0/k6C X-Received: by 10.194.174.3 with SMTP id bo3mr139927795wjc.98.1420130524767; Thu, 01 Jan 2015 08:42:04 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id e7sm61687593wjx.31.2015.01.01.08.42.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 08:42:04 -0800 (PST) From: Rickard Strandqvist To: Tony Lindgren , Russell King Subject: [PATCH] arch: arm: plat-omap: dma.c: Remove unused function Date: Thu, 1 Jan 2015 17:45:05 +0100 Message-Id: <1420130705-29316-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_084227_423090_3602B72F X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. 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=-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 get_gdma_dev() 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/plat-omap/dma.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 24770e5..6416e03 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -151,14 +151,6 @@ static int omap_dma_in_1510_mode(void) #endif #ifdef CONFIG_ARCH_OMAP1 -static inline int get_gdma_dev(int req) -{ - u32 reg = OMAP_FUNC_MUX_ARM_BASE + ((req - 1) / 5) * 4; - int shift = ((req - 1) % 5) * 6; - - return ((omap_readl(reg) >> shift) & 0x3f) + 1; -} - static inline void set_gdma_dev(int req, int dev) { u32 reg = OMAP_FUNC_MUX_ARM_BASE + ((req - 1) / 5) * 4;