From: Takashi Iwai Date: Wed, 19 Feb 2014 10:18:10 +0000 (+0100) Subject: ALSA: core: Fix missing card sysfs contents X-Git-Tag: v3.15-rc1~142^2~3^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b203dbab0838afa4b2de8b5bd880fb124446b764;p=pandora-kernel.git 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: 8bfb181c17d2 ('ALSA: Embed card device into struct snd_card') Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed