]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: catpt: Fix compilation when CONFIG_MODULES is disabled
authorCezary Rojewski <cezary.rojewski@intel.com>
Wed, 7 Oct 2020 13:57:00 +0000 (15:57 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Oct 2020 20:16:48 +0000 (21:16 +0100)
commit39cb2c88b445c54c76ab872d4ee74c42cc747fc1
treefba908948447f00b314251827e1a7917704fadfb
parentf96b76344a9e2327143153ee6cbd4b50fdd74df7
ASoC: Intel: catpt: Fix compilation when CONFIG_MODULES is disabled

module_is_live() is available only when CONFIG_MODULES is enabled.
Replace its usage with try_module_get() which is present regardless of
said config's status.

Fixes: 94bf2dfae5f8 ("ASoC: Intel: catpt: Device driver lifecycle")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20201007135701.20372-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/device.c