]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: Fix build error without SND_SOC_SOF_PCI_DEV
authorZheng Bin <zhengbin13@huawei.com>
Wed, 23 Mar 2022 09:25:01 +0000 (17:25 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 25 Mar 2022 16:09:28 +0000 (16:09 +0000)
commit7ed9a0570533a4c00c35c5ca741797a3f6b37c2f
tree801af56227ea49e8fa90761e6409452c5ffc94cc
parentea31547d16ef9e95790bfc97c6c7d85c665b29da
ASoC: SOF: Intel: Fix build error without SND_SOC_SOF_PCI_DEV

If SND_SOC_SOF_PCI_DEV is n, bulding fails:

sound/soc/sof/intel/pci-tng.o:(.data+0x1c0): undefined reference to `sof_pci_probe'
sound/soc/sof/intel/pci-tng.o:(.data+0x1c8): undefined reference to `sof_pci_remove'
sound/soc/sof/intel/pci-tng.o:(.data+0x1e0): undefined reference to `sof_pci_shutdown'
sound/soc/sof/intel/pci-tng.o:(.data+0x290): undefined reference to `sof_pci_pm'

Make SND_SOC_SOF_MERRIFIELD select SND_SOC_SOF_PCI_DEV to fix this.

Fixes: d08e815df808 ("ASoC: SOF: pci: split PCI into different drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220323092501.145879-1-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/Kconfig