ALSA: isa: Fix error return code in snd_cmi8330_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 7 Jul 2021 07:40:51 +0000 (15:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:17:54 +0000 (16:17 +0200)
commit32430c8d80aec70d1ddaa2249d4f4e3e4eb11ca4
tree94ed79fe7166098b8ee38d448b2036b30907e1f5
parent05418360de0c8cf2854346d38fe37011133a686d
ALSA: isa: Fix error return code in snd_cmi8330_probe()

[ Upstream commit 31028cbed26a8afa25533a10425ffa2ab794c76c ]

When 'SB_HW_16' check fails, the error code -ENODEV instead of 0 should be
returned, which is the same as that returned when 'WSS_HW_CMI8330' check
fails.

Fixes: 43bcd973d6d0 ("[ALSA] Add snd_card_set_generic_dev() call to ISA drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210707074051.2663-1-thunder.leizhen@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/isa/cmi8330.c