From patchwork Wed Apr 8 08:50:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 6177851 Return-Path: X-Original-To: patchwork-linux-mediatek@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 04D14BF4A6 for ; Wed, 8 Apr 2015 08:50:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30AC2201FA for ; Wed, 8 Apr 2015 08:50: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 58C2F201C8 for ; Wed, 8 Apr 2015 08:50: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 1YflhD-0004Nh-2N; Wed, 08 Apr 2015 08:50:51 +0000 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yflh3-0004IV-Ro; Wed, 08 Apr 2015 08:50:42 +0000 Received: by pdbqa5 with SMTP id qa5so51382498pdb.1; Wed, 08 Apr 2015 01:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=qfjJtZrCkA2rLpLMjeSX6h8UItbbRiClqfrlwsEhAMM=; b=U7ga/MBCL6FEh++NTF1A1uoPzsqD8U7GLIkP84tAZ8XckiOFjwj3ISy/CcUDozVULF UN/PWT0To6zVA7tr1L+ZsEEQiOKeGxJF2TKfIkGrfqLREx4z7jQFe3rXMY0Ugz0sIK5F ZnrzMq4xZGdqWwvkANrZTalqV2Ct0Gcvcl2n+RO1IMyedQqz/0795g2ncK6wT2bj2RKN VR/BzoLkGUw4LPGFcqx3znKdXXKYSIiFwWQZoxF+mTBv4PgkOVEcJccvGZzXYCTvHtMS Aew5A9m42uKivPAINfrbV4XyDYijpbYXExKonmoLpwXqCj8yXO034MBYHlmAFG34EP9M Z9sg== X-Received: by 10.70.96.65 with SMTP id dq1mr25902084pdb.79.1428483020255; Wed, 08 Apr 2015 01:50:20 -0700 (PDT) Received: from localhost ([216.228.120.20]) by mx.google.com with ESMTPSA id fn1sm10265286pbb.95.2015.04.08.01.50.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 01:50:19 -0700 (PDT) From: Thierry Reding To: Matthias Brugger Subject: [PATCH] soc/mediatek: Remove unused variables Date: Wed, 8 Apr 2015 10:50:16 +0200 Message-Id: <1428483016-5472-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150408_015041_958475_19D686FE X-CRM114-Status: UNSURE ( 7.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Flora Fu , Sascha Hauer , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Thierry Reding The PMIC wrapper driver adds a couple of variables that are never used. Remove them to avoid build warnings. Signed-off-by: Thierry Reding Signed-off-by: Matthias Brugger --- drivers/soc/mediatek/mtk-pmic-wrap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 4a38506154c6..db5be1eec54c 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -563,8 +563,6 @@ static int pwrap_init_sidly(struct pmic_wrapper *wrp) static int pwrap_init_reg_clock(struct pmic_wrapper *wrp) { - u32 wdata; - u32 rdata; unsigned long rate_spi; int ck_mhz;