Skip to contentSkip to conversation

ASoC: tpa6130a2: Remove obsolete cleanup for clientdata

PATCH Applied Axel Lin 3 participants 3 messages Sep 9, 2011 – Sep 16, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.

---
 sound/soc/codecs/tpa6130a2.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/codecs/tpa6130a2.c +0 -1
index 239e0c4..b2572c4 100644
@@ -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
Applied
#2 lore raw
In reply to Axel Lin
Quoted 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 if probe() failed anymore.

Applied, thanks.