ASoC: tpa6130a2: Remove obsolete cleanup for clientdata
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- sound/soc/codecs/tpa6130a2.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/codecs/tpa6130a2.c +0 -1
@@ -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;
Signature · 1 line
1.7.4.1
Quoted 5 lines · On Friday 09 September 2011 16:47:00 Axel Lin wrote:
The i2c core will clear the clientdata pointer automatically, we don't have to set the `data' field to NULL in
remove()or ifprobe()failed anymore.Signed-off-by Axel Lin <[email protected]>
Acked-by Peter Ujfalusi <[email protected]>
Mark Brown
AppliedQuoted 3 lines · Axel Lin
The i2c core will clear the clientdata pointer automatically, we don't have to set the `data' field to NULL in
remove()or ifprobe()failed anymore.
Applied, thanks.