ALSA: Simplify snd_device_register() variants
authorTakashi Iwai <tiwai@suse.de>
Fri, 30 Jan 2015 07:34:58 +0000 (08:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2015 16:01:26 +0000 (17:01 +0100)
commit40a4b263854346fe7c7d1c3964c106296f690816
tree409291460a651df9ef508f19667489a25f5df09e
parent04c5d5a430fca046cffac099a3f41e74816939da
ALSA: Simplify snd_device_register() variants

Now that all callers have been replaced with
snd_device_register_for_dev(), let's drop the obsolete device
registration code and concentrate only on the code handling struct
device directly.  That said,

- remove the old snd_device_register(),
- rename snd_device_register_for_dev() with snd_device_register(),
- drop superfluous arguments from snd_device_register(),
- change snd_unregister_device() to pass the device pointer directly

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/compress_offload.c
sound/core/control.c
sound/core/hwdep.c
sound/core/pcm.c
sound/core/rawmidi.c
sound/core/seq/seq_clientmgr.c
sound/core/sound.c
sound/core/timer.c