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)
commit9d2e19e349627e79bcd474bc64e71a312029b3be
tree59f9368c954b9a9fa02cea12d20d55e186db8060
parent8491f59e3b130ea8b5116e363d400c42f91544fc
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: 5b88da3c800f ("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