OSDN Git Service

ASoC: soc-core: fix module_put() warning in soc_cleanup_component
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 8 Aug 2019 02:51:31 +0000 (21:51 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 8 Aug 2019 19:56:59 +0000 (20:56 +0100)
commit0e36f36b04e7677c6b74349c9d4baea1ed5668f2
treea403d96c5aa65e5a8c8a4cf0e19145c5d48703b8
parent596becd3f82a7b7e091b0f5c380bc9a0e6758126
ASoC: soc-core: fix module_put() warning in soc_cleanup_component

The recent changes introduce warnings in the SOF load/unload module
tests. The code does not seem balanced with a confusion between
_close() and _remove() macros. Using _remove() fixes the issue and
removes the warning.

Suggested-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Fixes: 4a81e8f30d0b4 ('ASoC: soc-component: add snd_soc_component_get/put()')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20190808025131.32482-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c