From: Takashi Iwai Date: Thu, 24 Aug 2017 20:11:07 +0000 (+0200) Subject: ALSA: pcm: Correct broken procfs set up X-Git-Tag: v4.14-rc4~21^2~27^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6b4c525d94e6fb28d5c4b9eb4016caa12f68841;p=platform%2Fkernel%2Flinux-exynos.git ALSA: pcm: Correct broken procfs set up The commit c8da9be4a75f ("ALSA: pcm: Adjust nine function calls together with a variable assignment") contained a badly incorrect conversion, a "status" PCM procfs creation was replaced with the next one. Luckily, this could be spotted easily by the kernel runtime warning. Fixes: c8da9be4a75f ("ALSA: pcm: Adjust nine function calls together...") Reported-by: Fabio Estevam Tested-by: Fabio Estevam Signed-off-by: Takashi Iwai --- diff --git a/sound/core/pcm.c b/sound/core/pcm.c index c790f79..7eadb7f 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c @@ -625,7 +625,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) } } substream->proc_sw_params_entry = entry; - entry = snd_info_create_module_entry(THIS_MODULE, "pcm", NULL); + entry = snd_info_create_card_entry(card, "status", + substream->proc_root); if (entry) { snd_info_set_text_ops(entry, substream, snd_pcm_substream_proc_status_read);