From patchwork Tue Dec 2 22:08:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5424751 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DD0B3BEEA8 for ; Tue, 2 Dec 2014 22:08:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0EE9201FB for ; Tue, 2 Dec 2014 22:08:41 +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 04AB220103 for ; Tue, 2 Dec 2014 22:08:41 +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 1XvvaW-0000q7-3q; Tue, 02 Dec 2014 22:06:28 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XvvaU-0000kn-1t for linux-arm-kernel@lists.infradead.org; Tue, 02 Dec 2014 22:06:26 +0000 Received: by mail-wi0-f169.google.com with SMTP id r20so31434801wiv.0 for ; Tue, 02 Dec 2014 14:06:02 -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=IDLAwS0b81rZinfl6iE+vZrJmbVOCIvZpastLhW7u0I=; b=kkOaf1L+EzopX9vfKghOvedx2n56/ep49PMtAxeAx0pwUe6B1HPwAFiahQ26sffEMv nKm+lK6OpdSAYKImtOpextJaHZ8MWEBj+xDovkm0KlXA73thDcKvospySjlur98depwd CN+VQw8ctspX/fpwE2xWmRFqsNT+tza2KDO7HHxLDyE0IJzcjsu0ddLKTiQomdz1Eszr +XE2MJAaEuptYsic2yf4UuYXcNXQUzbjDL+wawag1E8NBdmXXeK49Kzefa8Br0Mc4JGU fkZyUHATnhaF9cBXTXtdPR29pwPAD6ww3Y6fVF9Tr+5w7hCmIMUQHS3/u9vgIBjfDsjs 1i4w== X-Gm-Message-State: ALoCoQk/FuNfasVwE6M656Lkf9OctALYxM3f2ZeMGEMG96y2kjZE1fB4FKxnNMq8uAsPLd2ybsht X-Received: by 10.194.246.130 with SMTP id xw2mr1968590wjc.33.1417557962180; Tue, 02 Dec 2014 14:06:02 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id dm10sm48109450wib.18.2014.12.02.14.06.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Dec 2014 14:06:01 -0800 (PST) From: Rickard Strandqvist To: Sekhar Nori , Kevin Hilman Subject: [PATCH] arch: arm: mach-davinci: serial.c: Cleaning up function that are not used anywhere Date: Tue, 2 Dec 2014 23:08:40 +0100 Message-Id: <1417558120-26540-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-20141202_140626_242002_43280A24 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Russell King , 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 function serial_read_reg() 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-davinci/serial.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm/mach-davinci/serial.c b/arch/arm/mach-davinci/serial.c index 5e93a73..951b620 100644 --- a/arch/arm/mach-davinci/serial.c +++ b/arch/arm/mach-davinci/serial.c @@ -31,16 +31,6 @@ #include #include -static inline unsigned int serial_read_reg(struct plat_serial8250_port *up, - int offset) -{ - offset <<= up->regshift; - - WARN_ONCE(!up->membase, "unmapped read: uart[%d]\n", offset); - - return (unsigned int)__raw_readl(up->membase + offset); -} - static inline void serial_write_reg(struct plat_serial8250_port *p, int offset, int value) {