summaryrefslogtreecommitdiffstats
path: root/sound/ppc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-09-09 17:50:52 +0800
committerTakashi Iwai <tiwai@suse.de>2011-09-12 10:36:12 +0200
commit47124373b59e43fd07cbf7b44d9288f19c1d5a93 (patch)
tree0532cb76c2ee0f1475c7102b2ca79e4b2e3d0394 /sound/ppc
parent5758960353d179f0541226764a1e47eff01666ff (diff)
downloadop-kernel-dev-47124373b59e43fd07cbf7b44d9288f19c1d5a93.zip
op-kernel-dev-47124373b59e43fd07cbf7b44d9288f19c1d5a93.tar.gz
ALSA: keywest: 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> Reviewed-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc')
-rw-r--r--sound/ppc/keywest.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c
index 8f064c7..4080bec 100644
--- a/sound/ppc/keywest.c
+++ b/sound/ppc/keywest.c
@@ -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)
OpenPOWER on IntegriCloud