diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-09 04:47:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-16 05:13:53 -0400 |
commit | 275708f88d3dce0728e2d099b5de8ebc0f15c69a (patch) | |
tree | 6fbacf492bddc4fd1d4030ee0f1a74d8b27f9a59 | |
parent | be4ff9612271ac63e16bb2a8e6666e62538b60ea (diff) |
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>
-rw-r--r-- | sound/soc/codecs/tpa6130a2.c | 1 |
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: | |||
446 | gpio_free(data->power_gpio); | 446 | gpio_free(data->power_gpio); |
447 | err_gpio: | 447 | err_gpio: |
448 | kfree(data); | 448 | kfree(data); |
449 | i2c_set_clientdata(tpa6130a2_client, NULL); | ||
450 | tpa6130a2_client = NULL; | 449 | tpa6130a2_client = NULL; |
451 | 450 | ||
452 | return ret; | 451 | return ret; |