diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-01-11 19:05:23 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-01-11 19:05:23 +0300 |
commit | 4d885f2d3b778681f22ab7df9b4ccd104ffcd7f4 (patch) | |
tree | 8d11e19a1fc48c8d5772399d016ec77302311337 /sound/sound_core.c | |
parent | c64ed5dd9feba193c76eb460b451225ac2a0d87b (diff) | |
download | linux-4d885f2d3b778681f22ab7df9b4ccd104ffcd7f4.tar.xz |
sound: Remove unused register_sound_midi() and co
These helpers are no longer used after the removal of the legacy OSS
drivers. Let's clean up.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sound_core.c')
-rw-r--r-- | sound/sound_core.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sound/sound_core.c b/sound/sound_core.c index 99b73c675743..8b026b66cf18 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -452,26 +452,6 @@ int register_sound_mixer(const struct file_operations *fops, int dev) EXPORT_SYMBOL(register_sound_mixer); -/** - * register_sound_midi - register a midi device - * @fops: File operations for the driver - * @dev: Unit number to allocate - * - * Allocate a midi device. Unit is the number of the midi device requested. - * Pass -1 to request the next free midi unit. - * - * Return: On success, the allocated number is returned. On failure, - * a negative error code is returned. - */ - -int register_sound_midi(const struct file_operations *fops, int dev) -{ - return sound_insert_unit(&chains[2], fops, dev, 2, 130, - "midi", S_IRUSR | S_IWUSR, NULL); -} - -EXPORT_SYMBOL(register_sound_midi); - /* * DSP's are registered as a triple. Register only one and cheat * in open - see below. @@ -533,21 +513,6 @@ void unregister_sound_mixer(int unit) EXPORT_SYMBOL(unregister_sound_mixer); /** - * unregister_sound_midi - unregister a midi device - * @unit: unit number to allocate - * - * Release a sound device that was allocated with register_sound_midi(). - * The unit passed is the return value from the register function. - */ - -void unregister_sound_midi(int unit) -{ - sound_remove_unit(&chains[2], unit); -} - -EXPORT_SYMBOL(unregister_sound_midi); - -/** * unregister_sound_dsp - unregister a DSP device * @unit: unit number to allocate * |