diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-09 17:50:52 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-12 10:36:12 +0200 |
commit | 47124373b59e43fd07cbf7b44d9288f19c1d5a93 (patch) | |
tree | 0532cb76c2ee0f1475c7102b2ca79e4b2e3d0394 /sound/ppc | |
parent | 5758960353d179f0541226764a1e47eff01666ff (diff) | |
download | talos-obmc-linux-47124373b59e43fd07cbf7b44d9288f19c1d5a93.tar.gz talos-obmc-linux-47124373b59e43fd07cbf7b44d9288f19c1d5a93.zip |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 8f064c7ce745..4080becf4cef 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) |