Commit 5bd77324 authored by Jonathan Marek's avatar Jonathan Marek Committed by Vinod Koul
Browse files

soundwire: qcom: avoid dependency on CONFIG_SLIMBUS

parent d1df23fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ config SOUNDWIRE_INTEL

config SOUNDWIRE_QCOM
	tristate "Qualcomm SoundWire Master driver"
	depends on SLIMBUS
	imply SLIMBUS
	depends on SND_SOC
	help
	  SoundWire Qualcomm Master driver.
+4 −0
Original line number Diff line number Diff line
@@ -745,7 +745,11 @@ static int qcom_swrm_probe(struct platform_device *pdev)
	if (!ctrl)
		return -ENOMEM;

#if IS_ENABLED(CONFIG_SLIBMUS)
	if (dev->parent->bus == &slimbus_bus) {
#else
	if (false) {
#endif
		ctrl->reg_read = qcom_swrm_ahb_reg_read;
		ctrl->reg_write = qcom_swrm_ahb_reg_write;
		ctrl->regmap = dev_get_regmap(dev->parent, NULL);