summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/common/soc-acpi-intel-cnl-match.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-05-20 03:42:39 +0200
committerMark Brown <broonie@kernel.org>2019-05-21 22:59:17 +0200
commit428306c3b3fe107b1d059ceecf6fda09a1fcedf5 (patch)
tree71fb2d8359f1ad1b5680139a1b9733800f576463 /sound/soc/intel/common/soc-acpi-intel-cnl-match.c
parentASoC: Intel: sof-rt5682: add newline for clarity (diff)
downloadlinux-428306c3b3fe107b1d059ceecf6fda09a1fcedf5.tar.xz
linux-428306c3b3fe107b1d059ceecf6fda09a1fcedf5.zip
ASoC: soc-pcm: fixup try_module_get()/module_put() timing
soc_pcm_components_open/close() try to call try_module_get()/module_put() based on component->driver->module_get_upon_open. Here, the purpose why we need to call these functions are to checking module reference. Thus, we need to call try_module_open() even though it doesn't have .open callback. The same reason, we need to call module_put() even though it doesn't have .close This patch calls try_module_get()/module_put() regardless of .open/.close Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/common/soc-acpi-intel-cnl-match.c')
0 files changed, 0 insertions, 0 deletions