Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b203dbab authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: 8bfb181c ('ALSA: Embed card device into struct snd_card')
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent dff86f86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment