]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()
authorAxel Lin <axel.lin@gmail.com>
Fri, 10 Dec 2010 09:34:26 +0000 (17:34 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Dec 2010 11:15:05 +0000 (12:15 +0100)
commit2fa17cdb561ef7d662edb52f52fdb95ed2e59781
tree3cb1010c740e4008ddbab3a4fe8b397d4e28cd4b
parent4fa04319dccf1e076d9e6b4bbd2f508eebb834ac
ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()

It does not make sense to set clientdata to onyx in onyx_i2c_remove()
as we are going to kfree onyx.
What we really want here is i2c_set_clientdata(client, NULL);
Since the i2c core will take care of it now, so this patch just removes it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/codecs/onyx.c