From: Axel Lin Date: Fri, 9 Sep 2011 08:47:00 +0000 (+0800) Subject: ASoC: tpa6130a2: Remove obsolete cleanup for clientdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=275708f88d3dce0728e2d099b5de8ebc0f15c69a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 239e0c46106..b2572c451c3 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;