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: 10590 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6188123E53 for ; Wed, 8 Aug 2012 14:47:45 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3158EA187B5 for ; Wed, 8 Aug 2012 14:47:45 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so842435yhp.11 for ; Wed, 08 Aug 2012 07:47:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=DGVGr1ppCNi8ZbnWLIh2SzZtlfYXEgYLX9WpH0qYiEY=; b=igqjEuLjni+GjxcKUm9XvdcnL8Lz7AZLkend/YaqR+o3h8rBHBTlHw3AmbqGt+I374 w5ev/zeU14wvaShHBeESiQQMfLTMY3RoLIvcN4Gy/+upNidKDGB+JM0/hzGBt1Jez+4/ LTVCNrE7CDjOx/wjLKdW2x/KzO3ZudB01pG8wCt/G/oRtKHaSLyWvNReFPSwdJ021u8Q hGGQOPEOPrinLMMzLRAdxk1Ug6FglGU5vEhC83ybnZKpbMRYEyf7V0hH6pGkpfFmAN7W bjFviDzK2gvMyOJMqDnmRhB90+tUoGDea9zDoj5x4ndoXXRLkgQS3Z6XUvE13/QymafW x+nQ== Received: by 10.50.6.229 with SMTP id e5mr1279718iga.9.1344437264064; Wed, 08 Aug 2012 07:47:44 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp611873igc; Wed, 8 Aug 2012 07:47:43 -0700 (PDT) Received: by 10.216.36.71 with SMTP id v49mr9186420wea.70.1344437262523; Wed, 08 Aug 2012 07:47:42 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.8]) by mx.google.com with ESMTP id w58si30176038wem.141.2012.08.08.07.47.42; Wed, 08 Aug 2012 07:47:42 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.8; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Mark Brown 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-Gm-Message-State: ALoCoQnqsPH5ZZlb0uI+AXFUSRyYXpSa0K6DAINZqkXy9ufvh1UPxfME/IGsXMZkJb/SyJZrk5rK 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);