Skip to content

Commit

Permalink
[PATCH] Fix breakage with CONFIG_SYSFS_DEPRECATED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 48ec15d commit c2902c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sound/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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);
Expand Down
2 changes: 1 addition & 1 deletion sound/core/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ static int snd_pcm_dev_register(struct snd_device *device)
* if possible */
dev = pcm->dev;
if (!dev)
dev = pcm->card ? pcm->card->dev : NULL;
dev = snd_card_get_device_link(pcm->card);
/* register pcm */
err = snd_register_device_for_dev(devtype, pcm->card,
pcm->device,
Expand Down

0 comments on commit c2902c8

Please sign in to comment.