From patchwork Fri Sep 23 12:47:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76844 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp550939qgf; Fri, 23 Sep 2016 05:47:38 -0700 (PDT) X-Received: by 10.98.31.133 with SMTP id l5mr12069367pfj.178.1474634858850; Fri, 23 Sep 2016 05:47:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q68si7620077pfq.104.2016.09.23.05.47.38; Fri, 23 Sep 2016 05:47:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759655AbcIWMrf (ORCPT + 27 others); Fri, 23 Sep 2016 08:47:35 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:36014 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758567AbcIWMrd (ORCPT ); Fri, 23 Sep 2016 08:47:33 -0400 Received: by mail-pf0-f176.google.com with SMTP id q2so41884685pfj.3 for ; Fri, 23 Sep 2016 05:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RRlQzngHgPyHTWgc92M/aPCMWEBpRWlPD63OPoEyaG8=; b=bWTDSZXV4xYbbqTsJcJ+/c9sx0O8IGXsL2MZX5hOAFt1kBZRuJ+Dy3B1/EulpxbOx/ DfnxtG/Cjgr5j/Sm4BCo7LZ8vHht2rvh7Bbm+KyJ7XLNn0va/H3WYgaxmBqMzSHkSJPD 3JvVBtCqYkYxoIoc2Auf8m47FvNTzCwuwRPdg= 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=RRlQzngHgPyHTWgc92M/aPCMWEBpRWlPD63OPoEyaG8=; b=H4mP87V13UAU8dVJF7d8KYVipiubCaUhvkM6DGCn5gt/Gtm2uUKbZ0+Rrwa6Qy+5xB SiCyF0+6iNEYjWFKIxzsge3VuLwwzO62Q9zaawbvakKqldCBqlRDWs+6mTRVXZKBu3jQ /qHhJkBmZmZ+gmdVboPQB6NARm84KYB+dETF+9AnLVyYjYcEhyW4alo5yiK1fuoGPku4 KBtwvVLukRXOpv/OV+l7Af02r/3fje7FCrGm/z7uEjLrcEsdrp0+xmy/smSFXKgB5SfR 4bXem5N9teMldXU5cjIvbc2ee0WYP/qdUEITgk7zPRO7xq6Icon/IaQiPjyzh+1tgxE3 DGOQ== X-Gm-Message-State: AE9vXwNdinhDp44RuGbegemFL1SlZdlhsaTHuFVeilz21J47h6UIltdVbb8FhnSRhdvy38Y1 X-Received: by 10.98.46.198 with SMTP id u189mr12098925pfu.116.1474634852351; Fri, 23 Sep 2016 05:47:32 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id i4sm11527498pav.27.2016.09.23.05.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 05:47:31 -0700 (PDT) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 1/2] regulator: dbx500: remove unused functions in dbx500-prcmu.c Date: Fri, 23 Sep 2016 20:47:22 +0800 Message-Id: <1474634842-2140-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/regulator/dbx500-prcmu.c:78:6: warning: no previous prototype for 'ux500_regulator_suspend_debug' [-Wmissing-prototypes] drivers/regulator/dbx500-prcmu.c:87:6: warning: no previous prototype for 'ux500_regulator_resume_debug' [-Wmissing-prototypes] In fact, these functions are unused in dbx500-prcmu.c, but should be removed. So this patch removes the unused functions. Signed-off-by: Baoyou Xie --- drivers/regulator/dbx500-prcmu.c | 18 ------------------ 1 file changed, 18 deletions(-) -- 2.7.4 Acked-by: Arnd Bergmann diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index 3963dfa..8976141 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -75,24 +75,6 @@ static struct ux500_regulator_debug { u8 *state_after_suspend; } rdebug; -void ux500_regulator_suspend_debug(void) -{ - int i; - - for (i = 0; i < rdebug.num_regulators; i++) - rdebug.state_before_suspend[i] = - rdebug.regulator_array[i].is_enabled; -} - -void ux500_regulator_resume_debug(void) -{ - int i; - - for (i = 0; i < rdebug.num_regulators; i++) - rdebug.state_after_suspend[i] = - rdebug.regulator_array[i].is_enabled; -} - static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p) { /* print power state count */