soundwire: qcom: Fix build failure when slimbus is module
authorVinod Koul <vkoul@kernel.org>
Wed, 25 Nov 2020 05:51:55 +0000 (11:21 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Nov 2020 04:25:07 +0000 (09:55 +0530)
commit47edc0104c61d609b0898a302267b7269d87a6af
tree1680a45ee644395dd78051d13432a9d2c8e971a1
parent47b8520997a8ec4a1d2b322c61b59ebe078764a9
soundwire: qcom: Fix build failure when slimbus is module

Commit 5bd773242f75 ("soundwire: qcom: avoid dependency on
CONFIG_SLIMBUS") removed hard dependency on Slimbus for qcom driver but
it results in build failure when: CONFIG_SOUNDWIRE_QCOM=y
CONFIG_SLIMBUS=m

drivers/soundwire/qcom.o: In function `qcom_swrm_probe':
qcom.c:(.text+0xf44): undefined reference to `slimbus_bus'

Fix this by using IS_REACHABLE() in driver which is recommended to be
used with imply.

Fixes: 5bd773242f75 ("soundwire: qcom: avoid dependency on CONFIG_SLIMBUS")
Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20201125055155.GD8403@vkoul-mobl
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c