From patchwork Wed Aug 8 14:47:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1296241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 765E6DF223 for ; Wed, 8 Aug 2012 14:52:09 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sz7Xy-0005Iw-K5; Wed, 08 Aug 2012 14:47:42 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sz7Xt-0005HK-Um for linux-arm-kernel@lists.infradead.org; Wed, 08 Aug 2012 14:47:38 +0000 Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LgeHd-1TVNRV2hbZ-00oPNh; Wed, 08 Aug 2012 16:47:36 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 09/11] regulator/twl: remove fixed resource handling Date: Wed, 8 Aug 2012 16:47:26 +0200 Message-Id: <1344437248-20560-10-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344437248-20560-1-git-send-email-arnd@arndb.de> References: <1344437248-20560-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:oNYC7vmsw2cglsy0ycU41JsAFocqvDMDG02CMOU7Q5q NoeCVXEY0oEYHBiwFacXHBqbOfdDyylP5AVzhodYiyU9XjTTRR XwcjgybvRoSclnMG4BcXyPdoD0YJ55vlIvEPqtoCtBF2v5zRPV JXUD+MW1WDV/MXcI8u6fuUCikB9P5WU4u7DdFNMmPCsRcB+Im5 S9E91OOs6FhYHwF/hxtna1zte/KjI2GxI8qnmV2Yd0J29sQPba fIntloDlbPnY2z/T3D1a7bqA+CiqPFkSmJWd8GYvok520vkpm7 Y/Lps3FkaVTpEElItFTEMAG3UAMnHOIR1b5NJ+ICXf0iTjl1M8 yEeVjaQiqqW9DpP0rYTyij3VddxHt7gavZPWV31o2gCV3XpiHq zykZSPkZUNpAdAWlE6arVjJa41CvuNXGFw= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.8 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Mark Brown X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The recent patch 0e8e5c34cf "regulator: twl: Remove references to 32kHz clock from DT bindings" removed the only use of the fake "CLK32KG" regulator but not the TWL6030_FIXED_RESOURCE and twl6030_fixed_resource definitions that are unused otherwise. Without this patch, building omap2plus_defconfig results in: drivers/regulator/twl-regulator.c:1051:27: warning: 'TWLRES_INFO_CLK32KG' defined but not used [-Wunused-variable] Signed-off-by: Arnd Bergmann Cc: Mark Brown --- drivers/regulator/twl-regulator.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 242fe90..514a84b 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -659,13 +659,6 @@ static struct regulator_ops twl6030fixed_ops = { .get_status = twl6030reg_get_status, }; -static struct regulator_ops twl6030_fixed_resource = { - .enable = twl6030reg_enable, - .disable = twl6030reg_disable, - .is_enabled = twl6030reg_is_enabled, - .get_status = twl6030reg_get_status, -}; - /* * SMPS status and control */ @@ -967,19 +960,6 @@ static struct twlreg_info TWLFIXED_INFO_##label = { \ }, \ } -#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \ -static struct twlreg_info TWLRES_INFO_##label = { \ - .base = offset, \ - .desc = { \ - .name = #label, \ - .id = TWL6030_REG_##label, \ - .ops = &twl6030_fixed_resource, \ - .type = REGULATOR_VOLTAGE, \ - .owner = THIS_MODULE, \ - .enable_time = turnon_delay, \ - }, \ - } - #define TWL6025_ADJUSTABLE_SMPS(label, offset) \ static struct twlreg_info TWLSMPS_INFO_##label = { \ .base = offset, \ @@ -1048,7 +1028,6 @@ TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0); TWL6030_FIXED_LDO(VUSB, 0x70, 3300, 0); TWL6030_FIXED_LDO(V1V8, 0x16, 1800, 0); TWL6030_FIXED_LDO(V2V1, 0x1c, 2100, 0); -TWL6030_FIXED_RESOURCE(CLK32KG, 0x8C, 0); TWL6025_ADJUSTABLE_SMPS(SMPS3, 0x34); TWL6025_ADJUSTABLE_SMPS(SMPS4, 0x10); TWL6025_ADJUSTABLE_SMPS(VIO, 0x16);