diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-06-23 08:37:59 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:36:48 -0400 |
commit | 746d4a02e68499fc6c1f8d0c43d2271853ade181 (patch) | |
tree | c4a1e9a0e8f5f95a44a3349d9b86490fe837428f /sound/core/rawmidi.c | |
parent | 42750b04c5baa7c5ffdf0a8be2b9b320efdf069f (diff) |
[ALSA] Fix disconnection of proc interface
- Add the linked list to each proc entry to enable a single-shot
disconnection (unregister)
- Deprecate snd_info_unregister(), use snd_info_free_entry()
- Removed NULL checks of snd_info_free_entry()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r-- | sound/core/rawmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 8c15c66eb4aa..51577c22f8ce 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c | |||
@@ -1599,7 +1599,7 @@ static int snd_rawmidi_dev_unregister(struct snd_device *device) | |||
1599 | mutex_lock(®ister_mutex); | 1599 | mutex_lock(®ister_mutex); |
1600 | list_del(&rmidi->list); | 1600 | list_del(&rmidi->list); |
1601 | if (rmidi->proc_entry) { | 1601 | if (rmidi->proc_entry) { |
1602 | snd_info_unregister(rmidi->proc_entry); | 1602 | snd_info_free_entry(rmidi->proc_entry); |
1603 | rmidi->proc_entry = NULL; | 1603 | rmidi->proc_entry = NULL; |
1604 | } | 1604 | } |
1605 | #ifdef CONFIG_SND_OSSEMUL | 1605 | #ifdef CONFIG_SND_OSSEMUL |