From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755870Ab1HRQV1 (ORCPT ); Thu, 18 Aug 2011 12:21:27 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:38068 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755295Ab1HRQV0 (ORCPT ); Thu, 18 Aug 2011 12:21:26 -0400 Date: Fri, 19 Aug 2011 01:21:16 +0900 From: Mark Brown To: Axel Lin Cc: linux-kernel@vger.kernel.org, Liam Girdwood , Johannes Stezenbach , alsa-devel@alsa-project.org Subject: Re: [PATCH] ASoC: sta32x: Move resource allocation and release to the corresponding callback functions Message-ID: <20110818162114.GE20208@opensource.wolfsonmicro.com> References: <1313652664.2917.3.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1313652664.2917.3.camel@phoenix> X-Cookie: You will contract a rare disease. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 18, 2011 at 03:31:04PM +0800, Axel Lin wrote: > This patch includes below small fixes: > > 1. Move sta32x_set_bias_level() from sta32x_i2c_remove() to sta32x_remove(). > 2. Remove a redundant regulator_bulk_free() call in sta32x_i2c_remove(), > as we will call regulator_bulk_free() in sta32x_remove(). > 3. Remove unneeded snd_soc_codec_set_drvdata(codec, NULL) in sta32x_i2c_remove. > The i2c core will set the clientdata to NULL. Applied, thanks.