diff mbox series

[RFC,2/2] ASoC: Intel: Skylake: set .ignore_module_refcount field in component

Message ID 20190201172224.14549-3-pierre-louis.bossart@linux.intel.com (mailing list archive)
State Accepted
Commit e0771fc98909096b65c9781c438ac9d9c98ac41a
Headers show
Series ASoC: core/Intel: fix module-in-use error | expand

Commit Message

Pierre-Louis Bossart Feb. 1, 2019, 5:22 p.m. UTC
There is no risk of the module being removed while the platform
components are in use. This solves the problem of the snd_soc_skl
module not being removable with rmmod

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/intel/skylake/skl-pcm.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index 8e589d698c58..a4284778f117 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -1464,6 +1464,7 @@  static const struct snd_soc_component_driver skl_component  = {
 	.ops		= &skl_platform_ops,
 	.pcm_new	= skl_pcm_new,
 	.pcm_free	= skl_pcm_free,
+	.ignore_module_refcount = 1, /* do not increase the refcount in core */
 };
 
 int skl_platform_register(struct device *dev)