]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: core: Fix missing card sysfs contents
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Feb 2014 10:18:10 +0000 (11:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Feb 2014 10:20:32 +0000 (11:20 +0100)
commitb8f2204948c169b9a4918b28ab9287c03a2fb7e9
tree02a8fc1f6f0323b6aa04fb1f4d944dca10a03e84
parent9dd9ba063d9df205e776178e03adb02e835dc9e8
ALSA: core: Fix missing card sysfs contents

While moving the card device into struct snd_card, the reference to
the assigned card in sysfs show/store callbacks were forgotten to be
refreshed, still accessing to the no longer used drvdata.  Fix these
places to refer correctly via container_of().

Also, remove the superfluous NULL checks since it's guaranteed to be
non-NULL now.

Fixes: c87759dfe00e ('ALSA: Embed card device into struct snd_card')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/init.c