From patchwork Sun Mar 16 14:57:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3839341 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A3F15BF540 for ; Sun, 16 Mar 2014 14:58:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2679201BC for ; Sun, 16 Mar 2014 14:58:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id ED49320171 for ; Sun, 16 Mar 2014 14:58:12 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5A3C82610CA; Sun, 16 Mar 2014 15:58:11 +0100 (CET) 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, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id ECECE2610A8; Sun, 16 Mar 2014 15:58:00 +0100 (CET) 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 498112610AE; Sun, 16 Mar 2014 15:57:59 +0100 (CET) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by alsa0.perex.cz (Postfix) with ESMTP id CA7B62610A6 for ; Sun, 16 Mar 2014 15:57:51 +0100 (CET) Received: by mail-pd0-f182.google.com with SMTP id y10so4497924pdj.41 for ; Sun, 16 Mar 2014 07:57:50 -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=6lLKTTIJJ0dwj3WOGT24gX1M+7pAYWwlvsGfNWkdMCY=; b=XVDi6jnR70wLzMmtJFykRsAVCDly2mNQG9+8RIgA4+Fhkik7cpNfZX7RbiVIiuwQF+ osqyd4uMlYyLp8+Pms7FqeJ5RpcXwgKxlg0Sdq5teWic7WtuJDOQTNNXoyP2GRIcTh8o BtSn15ntl09J4mfDHcK6wRuPIlxy/9nGP9mbdbb+We/T8ht0waMBrTYJtjgl5Hs10BJC FhBSz1XvyEP/QqWlupHv0kFaK9HoXY5518po/uOYz82sFqE2Ht6yGlbP6gpcM7X3V6kg G5yzbuF8JkKNiafpgfFg2UGGdHRFDJ1016g5w/5HdjPH6IKFMFyReHO+H6gdxxswnucP Nh0Q== X-Gm-Message-State: ALoCoQmALwZooIHQ6ZwAUw+AtxjZh8tU5JJIHASDWC95qVge0uwhMX9y5yunJ6J+n2KIbKBuRBUl X-Received: by 10.66.243.131 with SMTP id wy3mr20308815pac.32.1394981870129; Sun, 16 Mar 2014 07:57:50 -0700 (PDT) Received: from [192.168.0.102] (218-164-130-226.dynamic.hinet.net. [218.164.130.226]) by mx.google.com with ESMTPSA id om6sm34963950pbc.43.2014.03.16.07.57.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Mar 2014 07:57:49 -0700 (PDT) Message-ID: <1394981865.19788.2.camel@phoenix> From: Axel Lin To: Mark Brown Date: Sun, 16 Mar 2014 22:57:45 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org, Liam Girdwood , Jyri Sarha Subject: [alsa-devel] [PATCH] ASoC: tlv320aic31xx: Don't call kfree for memory allocated by devm_kzalloc 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 Signed-off-by: Axel Lin --- sound/soc/codecs/tlv320aic31xx.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c index d3517a9..1953184 100644 --- a/sound/soc/codecs/tlv320aic31xx.c +++ b/sound/soc/codecs/tlv320aic31xx.c @@ -1248,14 +1248,6 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c, return ret; } -static int aic31xx_i2c_remove(struct i2c_client *i2c) -{ - struct aic31xx_priv *aic31xx = dev_get_drvdata(&i2c->dev); - - kfree(aic31xx); - return 0; -} - static const struct i2c_device_id aic31xx_i2c_id[] = { { "tlv320aic310x", AIC3100 }, { "tlv320aic311x", AIC3110 }, @@ -1274,7 +1266,6 @@ static struct i2c_driver aic31xx_i2c_driver = { .of_match_table = of_match_ptr(tlv320aic31xx_of_match), }, .probe = aic31xx_i2c_probe, - .remove = (aic31xx_i2c_remove), .id_table = aic31xx_i2c_id, };