ALSA: ppc: fix error return code in snd_pmac_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 16 Jun 2021 02:11:21 +0000 (10:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Jun 2021 06:52:29 +0000 (08:52 +0200)
commit80b9c1be567c3c6bbe0d4b290af578e630485b5d
treeb74f39442f2c86436678ee639338e3b33146baa9
parente381a14c3e3a4e90e293d4eaa5a3ab8ae98b9973
ALSA: ppc: fix error return code in snd_pmac_probe()

If snd_pmac_tumbler_init() or snd_pmac_tumbler_post_init() fails,
snd_pmac_probe() need return error code.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210616021121.1991502-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ppc/powermac.c