Skip to content

Commit

Permalink
ASoC: tpa6130a2: Remove obsolete cleanup for clientdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 16, 2011
1 parent be4ff96 commit 275708f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/codecs/tpa6130a2.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ static int __devinit tpa6130a2_probe(struct i2c_client *client,
gpio_free(data->power_gpio);
err_gpio:
kfree(data);
i2c_set_clientdata(tpa6130a2_client, NULL);
tpa6130a2_client = NULL;

return ret;
Expand Down

0 comments on commit 275708f

Please sign in to comment.