diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-23 04:56:21 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-24 11:31:08 -0400 |
commit | a0dca822e923e605dbdc2f6ed4fcd96b74df9258 (patch) | |
tree | 667e4f97b560fa6570f99cc60312a72faca4c852 /include/sound | |
parent | 85d143180738475b89d76b18409c3125b01464e1 (diff) |
ALSA: core: Clean up OSS proc file management
A few minor cleanups:
- Move the call of snd_info_minor_register() into snd_info_init() so
that we can call all proc-related stuff in a shot
- Add missing __init prefix to snd_info_minor_register()
- Return an error properly from snd_oss_info_register()
- Drop snd_info_minor_unregister() that is superfluous now
Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/info.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/sound/info.h b/include/sound/info.h index 3e2fda3c75ee..16269951bafc 100644 --- a/include/sound/info.h +++ b/include/sound/info.h | |||
@@ -94,10 +94,8 @@ struct snd_info_entry { | |||
94 | 94 | ||
95 | #if defined(CONFIG_SND_OSSEMUL) && defined(CONFIG_PROC_FS) | 95 | #if defined(CONFIG_SND_OSSEMUL) && defined(CONFIG_PROC_FS) |
96 | int snd_info_minor_register(void); | 96 | int snd_info_minor_register(void); |
97 | int snd_info_minor_unregister(void); | ||
98 | #else | 97 | #else |
99 | #define snd_info_minor_register() /* NOP */ | 98 | #define snd_info_minor_register() 0 |
100 | #define snd_info_minor_unregister() /* NOP */ | ||
101 | #endif | 99 | #endif |
102 | 100 | ||
103 | 101 | ||