ASoC: SOF: core: fix undefined nocodec reference
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 May 2019 16:32:36 +0000 (11:32 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 06:42:00 +0000 (15:42 +0900)
commitce38a75089f70f6380fc63a5478a7659b4eb3f47
tree2b937b5e306b5e137b8c6ddc6626cb9d27166c25
parent78989ff8aeaddc183237da558ee07deee35fbbbd
ASoC: SOF: core: fix undefined nocodec reference

The existing code mistakenly uses IS_ENABLED in C code instead of as
in conditional compilation, leading to the following error:

ld: sound/soc/sof/core.o: in function `sof_machine_check':
sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'

Fix by using #if !IS_ENABLED()

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c