提交 c2902c8a 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[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: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 48ec15dc
...@@ -242,7 +242,7 @@ static inline int snd_register_device(int type, struct snd_card *card, int dev, ...@@ -242,7 +242,7 @@ static inline int snd_register_device(int type, struct snd_card *card, int dev,
{ {
return snd_register_device_for_dev(type, card, dev, f_ops, return snd_register_device_for_dev(type, card, dev, f_ops,
private_data, name, private_data, name,
card ? card->dev : NULL); snd_card_get_device_link(card));
} }
int snd_unregister_device(int type, struct snd_card *card, int dev); int snd_unregister_device(int type, struct snd_card *card, int dev);
......
...@@ -968,7 +968,7 @@ static int snd_pcm_dev_register(struct snd_device *device) ...@@ -968,7 +968,7 @@ static int snd_pcm_dev_register(struct snd_device *device)
* if possible */ * if possible */
dev = pcm->dev; dev = pcm->dev;
if (!dev) if (!dev)
dev = pcm->card ? pcm->card->dev : NULL; dev = snd_card_get_device_link(pcm->card);
/* register pcm */ /* register pcm */
err = snd_register_device_for_dev(devtype, pcm->card, err = snd_register_device_for_dev(devtype, pcm->card,
pcm->device, pcm->device,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册