From patchwork Sun Dec 7 01:16:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451021 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 33DB39F319 for ; Sun, 7 Dec 2014 01:16:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FEF020142 for ; Sun, 7 Dec 2014 01:16:15 +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 BACAF2013D for ; Sun, 7 Dec 2014 01:16:12 +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 1XxQQe-0006ex-P0; Sun, 07 Dec 2014 01:14:28 +0000 Received: from mail-wg0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XxQQc-0006Xc-8M for linux-arm-kernel@lists.infradead.org; Sun, 07 Dec 2014 01:14:27 +0000 Received: by mail-wg0-f49.google.com with SMTP id n12so3636287wgh.8 for ; Sat, 06 Dec 2014 17:14: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=pszm0b6TW6e87GkBCXty9aXTn6do5cBbUCZES1R2eeA=; b=k8zD3MKpGAwP0mxA8gsZea0LAlYPpHinRFZ9D+himJMS/VKFbT4QTTKsRcqZTovLYb 2Af5w6XXYeeb1jOHvxkKF6lb3Mk9pyP2/ur68zG7zrOfiHgQVYi2UQPbVdSVphvEX3vw xCk2HWy/6c73/BGq5UQ2yMVZeEREmx+EsZgeWWTel0I9qg/mk1eG/Rc5IE9TOfEgcbnb NMZ2HoY/ewWl9hZgniN/gHnwnjREHQ4bZh3ETSS0iW2st9WutFz0ntHXlkEzcpjvoorQ Eo2l4sMt6iC4dN+MMmC4dVG/IsqtdnkOhFgGFgksWeR8ikLj3mUd8Y3T0rQk4QPtyA1i IjyA== X-Gm-Message-State: ALoCoQkl9ImKymsHSyj+oi1QfKVnbq2nmm6H4q8O/KWP7xhX10jlWnA9rj8d+J7EP8TYOre2JviK X-Received: by 10.180.109.45 with SMTP id hp13mr14112107wib.4.1417914844462; Sat, 06 Dec 2014 17:14: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 vy7sm50615399wjc.27.2014.12.06.17.14.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Dec 2014 17:14:03 -0800 (PST) From: Rickard Strandqvist To: David Brown , Daniel Walker Subject: [PATCH] arch: arm: mach-msm: vreg.c: Remove unused function Date: Sun, 7 Dec 2014 02:16:44 +0100 Message-Id: <1417915004-8574-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_171426_445732_1DE20160 X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -0.7 (/) Cc: Russell King , Rickard Strandqvist , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan Huntsman , 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 vreg_put() 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-msm/include/mach/vreg.h | 1 - arch/arm/mach-msm/vreg.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/arch/arm/mach-msm/include/mach/vreg.h b/arch/arm/mach-msm/include/mach/vreg.h index 6626e78..28351ff 100644 --- a/arch/arm/mach-msm/include/mach/vreg.h +++ b/arch/arm/mach-msm/include/mach/vreg.h @@ -20,7 +20,6 @@ struct vreg; struct vreg *vreg_get(struct device *dev, const char *id); -void vreg_put(struct vreg *vreg); int vreg_enable(struct vreg *vreg); int vreg_disable(struct vreg *vreg); diff --git a/arch/arm/mach-msm/vreg.c b/arch/arm/mach-msm/vreg.c index bd66ed0..0bf891d 100644 --- a/arch/arm/mach-msm/vreg.c +++ b/arch/arm/mach-msm/vreg.c @@ -96,10 +96,6 @@ struct vreg *vreg_get(struct device *dev, const char *id) return ERR_PTR(-ENOENT); } -void vreg_put(struct vreg *vreg) -{ -} - int vreg_enable(struct vreg *vreg) { unsigned id = vreg->id;