Commit c2902c8ae06762d941fab64198467f78cab6f8cd

Authored by Takashi Iwai
Committed by Jaroslav Kysela
1 parent 48ec15dca8

[PATCH] Fix breakage with CONFIG_SYSFS_DEPRECATED

The fix for sysfs breakage with CONFIG_SYSFS_DEPRECATED was flown
away by the conflicted merge of the ALSA git tree.  The patch below
fixes it again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

include/sound/core.h
... ... @@ -242,7 +242,7 @@
242 242 {
243 243 return snd_register_device_for_dev(type, card, dev, f_ops,
244 244 private_data, name,
245   - card ? card->dev : NULL);
  245 + snd_card_get_device_link(card));
246 246 }
247 247  
248 248 int snd_unregister_device(int type, struct snd_card *card, int dev);
... ... @@ -968,7 +968,7 @@
968 968 * if possible */
969 969 dev = pcm->dev;
970 970 if (!dev)
971   - dev = pcm->card ? pcm->card->dev : NULL;
  971 + dev = snd_card_get_device_link(pcm->card);
972 972 /* register pcm */
973 973 err = snd_register_device_for_dev(devtype, pcm->card,
974 974 pcm->device,