]> Pileus Git - ~andy/linux/commitdiff
ALSA: keywest: Remove obsolete cleanup for clientdata
authorAxel Lin <axel.lin@gmail.com>
Fri, 9 Sep 2011 09:50:52 +0000 (17:50 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Sep 2011 08:36:12 +0000 (10:36 +0200)
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>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ppc/keywest.c

index 8f064c7ce74569348d0af6a035f97c353af9ac71..4080becf4cef0f892d453143b517dd23df46f59d 100644 (file)
@@ -82,7 +82,6 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
 
 static int keywest_remove(struct i2c_client *client)
 {
-       i2c_set_clientdata(client, NULL);
        if (! keywest_ctx)
                return 0;
        if (client == keywest_ctx->client)