summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tpa6130a2.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-09-09 16:47:00 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-16 10:13:53 +0100
commit275708f88d3dce0728e2d099b5de8ebc0f15c69a (patch)
tree6fbacf492bddc4fd1d4030ee0f1a74d8b27f9a59 /sound/soc/codecs/tpa6130a2.c
parentbe4ff9612271ac63e16bb2a8e6666e62538b60ea (diff)
downloadlwn-275708f88d3dce0728e2d099b5de8ebc0f15c69a.tar.gz
lwn-275708f88d3dce0728e2d099b5de8ebc0f15c69a.zip
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 <axel.lin@gmail.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r--sound/soc/codecs/tpa6130a2.c1
1 files changed, 0 insertions, 1 deletions
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;