]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: tpa6130a2: Remove obsolete cleanup for clientdata
authorAxel Lin <axel.lin@gmail.com>
Fri, 9 Sep 2011 08:47:00 +0000 (16:47 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 16 Sep 2011 09:13:53 +0000 (10:13 +0100)
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>
sound/soc/codecs/tpa6130a2.c

index 239e0c461068bebb2189a0d7aaff22f472fc8d78..b2572c451c35ea9f6f9f6aab938aac2781ccdaa4 100644 (file)
@@ -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;