From: Axel Lin Date: Thu, 18 Aug 2011 07:31:04 +0000 (+0800) Subject: ASoC: sta32x: Move resource allocation and release to the corresponding callback... X-Git-Tag: v3.2-rc1~127^2~2^2~1^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3d73c1bbf08b9abd3f56293796ba7b5c15008f5;p=pandora-kernel.git ASoC: sta32x: Move resource allocation and release to the corresponding callback functions 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. Signed-off-by: Axel Lin Johannes Stezenbach Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed