Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275708f8 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent be4ff961
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;