ASoC: atmel: mchp-pdmc: Use snd_ctl_remove_id()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Jul 2023 14:12:56 +0000 (16:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:01:09 +0000 (10:01 +0200)
commitd8b366c40638d5aedad74646707b2b04b7342210
tree33e2e91e3c2bf0ad3fb2c99d9c801bd755e4d485
parent6eca69147542686a412b2657c0fd74bc4a38cc44
ASoC: atmel: mchp-pdmc: Use snd_ctl_remove_id()

Use the standard snd_ctl_remove_id() helper instead of open code for
removing a kctl.  This helps for avoiding possible races.

Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230718141304.1032-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/atmel/mchp-pdmc.c