]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: Intel: Skylake: set .ignore_module_refcount field in component
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 1 Feb 2019 17:22:24 +0000 (11:22 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 8 Feb 2019 18:02:18 +0000 (18:02 +0000)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c

index 8e589d698c588e2349ff270de4c7a30a6507d9b9..a4284778f117d6480737062b400941c90091c1b2 100644 (file)
@@ -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)