From patchwork Thu Aug 28 09:54:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4812661 Return-Path: X-Original-To: patchwork-alsa-devel@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 8C8169F38C for ; Fri, 29 Aug 2014 22:03:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C88FF20122 for ; Fri, 29 Aug 2014 22:03:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id AC2E42011B for ; Fri, 29 Aug 2014 22:03:06 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C61B026596C; Sat, 30 Aug 2014 00:03:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 63F2726168C; Fri, 29 Aug 2014 17:43:55 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1426B26168C; Fri, 29 Aug 2014 17:43:53 +0200 (CEST) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by alsa0.perex.cz (Postfix) with ESMTP id 50392268E33 for ; Thu, 28 Aug 2014 11:54:45 +0200 (CEST) Received: by mail-ig0-f179.google.com with SMTP id r2so616307igi.0 for ; Thu, 28 Aug 2014 02:54:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=/j1ySJP8bpVbDDdZDsXICUU4pofS6pXJ/keWUvaXBtE=; b=GDdJoDFp5yWd0uTiIhatPFgeX74vJguhFzcWR64hwFz6GTlN69qzzKwXBjEUek6NDI WfGAbD6k5Ue7P2GpGQDDQ4EFsZ2NZWZ8AYKWXY/rNgIVjR3+a8zQzpedpdBBInNTE1yF peK0eRDAvvdH95K6gcCzpSj1vP6G5MU9VIKm6GoykzKaJk81DsHfyTe0xW5u6tlsf3gH VykLGtJyfVIJsZG9lVm6+vTDdo6E3tbTcda41gEM30/TK+VHLY0ymAedWgqasrI8dA5a Ts8ER/NrGpCGaOqihjY7GoFFbWmChagCOWgZSLYhBfzpXeNSDRREfsSvcvlaruyBRFlx Z0ww== X-Gm-Message-State: ALoCoQlXvKpop//KKSHhvC+i7+3vMsvQ3Iyd/Y4AaN6KBccbW1T+3uyC9GA8G9NROT/FWowR6Vph X-Received: by 10.42.35.8 with SMTP id o8mr3226710icd.41.1409219684238; Thu, 28 Aug 2014 02:54:44 -0700 (PDT) Received: from [192.168.0.105] (218-164-135-26.dynamic.hinet.net. [218.164.135.26]) by mx.google.com with ESMTPSA id mv5sm38578321igb.11.2014.08.28.02.54.41 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 28 Aug 2014 02:54:43 -0700 (PDT) Message-ID: <1409219678.21395.4.camel@phoenix> From: Axel Lin To: Mark Brown Date: Thu, 28 Aug 2014 17:54:38 +0800 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Cc: Brian Austin , "alsa-devel@alsa-project.org" , Liam Girdwood , Paul Handrigan Subject: [alsa-devel] [PATCH 1/2] ASoC: cs35l32: Remove unneeded regulator_bulk_free call in cs35l32_i2c_remove X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The regulator_bulk_free() call is not required because current code is using devm_regulator_bulk_get(). Signed-off-by: Axel Lin --- sound/soc/codecs/cs35l32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c index 380c212..718569f 100644 --- a/sound/soc/codecs/cs35l32.c +++ b/sound/soc/codecs/cs35l32.c @@ -548,8 +548,6 @@ static int cs35l32_i2c_remove(struct i2c_client *i2c_client) if (cs35l32->reset_gpio) gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); - regulator_bulk_free(ARRAY_SIZE(cs35l32->supplies), cs35l32->supplies); - return 0; }