From patchwork Thu Aug 28 09:55:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4812671 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 0251C9F38C for ; Fri, 29 Aug 2014 22:03:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4211E20125 for ; Fri, 29 Aug 2014 22:03:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 23BC12011B for ; Fri, 29 Aug 2014 22:03:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3AA42265984; Sat, 30 Aug 2014 00:03:32 +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 4C9C0265D6D; Fri, 29 Aug 2014 17:44:03 +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 DA995265D6D; Fri, 29 Aug 2014 17:44:01 +0200 (CEST) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by alsa0.perex.cz (Postfix) with ESMTP id AF245268E39 for ; Thu, 28 Aug 2014 11:55:26 +0200 (CEST) Received: by mail-ie0-f173.google.com with SMTP id lx4so647688iec.4 for ; Thu, 28 Aug 2014 02:55:25 -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:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=wEZJuoTXOlLqD+sVjCoaWId0eAE5vgCKmMB2fHiPhvg=; b=OaeQ7kwPaNegOmuTCgsl+nwv8hKk6rdxn0ylrEfGgYraiQQaB4360dR7yll+w5OrGA IjOiG6jcBnQKL8v+LVPWGSEv2VMEyRsx8V1NqMUe6j/w3/of+MInb3qd8bo0rNNshLEi AfLplAat49WagE4Pc/26UXQYQXPWS1jTX6U0Xf7DEOGew68SRmgKxUwXd/aHtzRyCFU0 FJI34012GW9u4daOO4UIp7GywBqhMdU8difXYh3v/vBVaqTNn67pWR8K2H0TiUx3FGdc SCsQ/5kK0cgVXwy6IYBJm9IRyjKbqNtALcmq9Qn5jmJRP0/eOSIDyoAsKyOI4MCZc9I+ zXyA== X-Gm-Message-State: ALoCoQnNVsFyA5jukspwN8SUSjYnnbpubUNwERbk9gnKH5P/WIrzU0PmhM8sMtRqhlCJ1Me5kABX X-Received: by 10.50.30.72 with SMTP id q8mr36296650igh.14.1409219725753; Thu, 28 Aug 2014 02:55:25 -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 m4sm38497454igr.20.2014.08.28.02.55.23 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 28 Aug 2014 02:55:25 -0700 (PDT) Message-ID: <1409219720.21395.5.camel@phoenix> From: Axel Lin To: Mark Brown Date: Thu, 28 Aug 2014 17:55:20 +0800 In-Reply-To: <1409219678.21395.4.camel@phoenix> References: <1409219678.21395.4.camel@phoenix> 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 2/2] ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_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 Acked-by: Brian Austin --- sound/soc/codecs/cs42l56.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index c766a5a..5a2d732 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c @@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec) static int cs42l56_remove(struct snd_soc_codec *codec) { - struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec); - cs42l56_free_beep(codec); cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); - regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies); return 0; }