]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: gus: Fix repeated probes of snd_gus_create()
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Sep 2021 09:39:29 +0000 (11:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Sep 2021 09:40:07 +0000 (11:40 +0200)
commitb692f646c77cbb5fa378d7df69f3b950ec5210c6
tree59f9368c954b9a9fa02cea12d20d55e186db8060
parentcd0cc5222680be2a08052c045cab8565085aab63
ALSA: gus: Fix repeated probes of snd_gus_create()

GUS card object may be repeatedly probed for the legacy ISA devices,
and the behavior doesn't fit with the devres resource management.

Revert partially back to the classical way for the snd_gus_card
object, so that the repeated calls of snd_gus_create() are allowed.

Fixes: 7d0ed3b78b76 ("ALSA: gus: Allocate resources with device-managed APIs")
Reported-by: kernel test robot <oliver.sang@intel.com>
Link: https://lore.kernel.org/r/20210907093930.29009-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/gus/gus_main.c