From: Axel Lin Date: Fri, 9 Sep 2011 08:47:00 +0000 (+0800) Subject: ASoC: tpa6130a2: Remove obsolete cleanup for clientdata X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=275708f88d3dce0728e2d099b5de8ebc0f15c69a;p=openwrt%2Fstaging%2Fblogic.git ASoC: tpa6130a2: Remove obsolete cleanup for clientdata The i2c core will clear the clientdata pointer automatically, we don't have to set the `data' field to NULL in remove() or if probe() failed anymore. Signed-off-by: Axel Lin Acked-by: Peter Ujfalusi Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c index 239e0c461068..b2572c451c35 100644 --- a/sound/soc/codecs/tpa6130a2.c +++ b/sound/soc/codecs/tpa6130a2.c @@ -446,7 +446,6 @@ err_regulator: gpio_free(data->power_gpio); err_gpio: kfree(data); - i2c_set_clientdata(tpa6130a2_client, NULL); tpa6130a2_client = NULL; return ret;