Skip to content

Commit

Permalink
sound: Remove unused register_sound_midi() and co
Browse files Browse the repository at this point in the history
These helpers are no longer used after the removal of the legacy OSS
drivers.  Let's clean up.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jan 11, 2018
1 parent c64ed5d commit 4d885f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
2 changes: 0 additions & 2 deletions include/linux/sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ struct device;
extern int register_sound_special(const struct file_operations *fops, int unit);
extern int register_sound_special_device(const struct file_operations *fops, int unit, struct device *dev);
extern int register_sound_mixer(const struct file_operations *fops, int dev);
extern int register_sound_midi(const struct file_operations *fops, int dev);
extern int register_sound_dsp(const struct file_operations *fops, int dev);

extern void unregister_sound_special(int unit);
extern void unregister_sound_mixer(int unit);
extern void unregister_sound_midi(int unit);
extern void unregister_sound_dsp(int unit);
#endif /* _LINUX_SOUND_H */
35 changes: 0 additions & 35 deletions sound/sound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -532,21 +512,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
Expand Down

0 comments on commit 4d885f2

Please sign in to comment.