diff options
author | Mark Brown <broonie@kernel.org> | 2019-04-26 11:02:03 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-26 11:02:03 +0100 |
commit | 93f38ef6a4b62fd57076d36d1345d69f8a328ad9 (patch) | |
tree | bc7f20d968c8d1f7374927bd187d3f26f786459d /sound/soc/soc-core.c | |
parent | 552f2d7edd38e29073f8036191320f09b534c480 (diff) | |
parent | 780f202f2bf48aaa09282efc4dd6c39a146cc1f3 (diff) | |
download | linux-93f38ef6a4b62fd57076d36d1345d69f8a328ad9.tar.bz2 |
Merge branch 'asoc-5.1' into asoc-5.2
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 75f6a8085a76..2403bec2fccf 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -947,7 +947,7 @@ static void soc_cleanup_component(struct snd_soc_component *component) snd_soc_dapm_free(snd_soc_component_get_dapm(component)); soc_cleanup_component_debugfs(component); component->card = NULL; - if (!component->driver->ignore_module_refcount) + if (!component->driver->module_get_upon_open) module_put(component->dev->driver->owner); } @@ -1381,7 +1381,7 @@ static int soc_probe_component(struct snd_soc_card *card, return 0; } - if (!component->driver->ignore_module_refcount && + if (!component->driver->module_get_upon_open && !try_module_get(component->dev->driver->owner)) return -ENODEV; |