ALSA: pcm: Remove superfluous snd_info_register() calls
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 14:02:11 +0000 (15:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Feb 2019 17:11:54 +0000 (18:11 +0100)
commita8d149813b4456b689effb1f10accdc937566703
tree8d0f924acd27aa26a5bd60d8e542f477e54ad4d8
parent69fad28cefe33a8d45daef7ef9f5abb69ec2d343
ALSA: pcm: Remove superfluous snd_info_register() calls

The calls of snd_info_register() are superfluous and should be avoided
at the procfs creation time.  They are called at the end of the whole
initialization via snd_card_register().  This patch drops such
superfluous calls, as well as cleaning up the calls of substream proc
entries with a common helper.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c
sound/core/pcm_memory.c