mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
3b6c4a11bf
SoundWire has provisions for a simple callback for the IRQ handling so
has no hard dependency on IRQ_DOMAIN, but the recent addition of IRQ
handling was causing builds without IRQ_DOMAIN to fail. Resolve this by
moving the IRQ handling into its own file and only add it to the build
when IRQ_DOMAIN is included in the kernel.
Fixes: 12a95123bf
("soundwire: bus: Allow SoundWire peripherals to register IRQ handlers")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309150522.MoKeF4jx-lkp@intel.com/
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230920160401.854052-1-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
39 lines
1002 B
Makefile
39 lines
1002 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Makefile for soundwire core
|
|
#
|
|
|
|
#Bus Objs
|
|
soundwire-bus-y := bus_type.o bus.o master.o slave.o mipi_disco.o stream.o \
|
|
sysfs_slave.o sysfs_slave_dpn.o
|
|
obj-$(CONFIG_SOUNDWIRE) += soundwire-bus.o
|
|
|
|
soundwire-generic-allocation-objs := generic_bandwidth_allocation.o
|
|
obj-$(CONFIG_SOUNDWIRE_GENERIC_ALLOCATION) += soundwire-generic-allocation.o
|
|
|
|
ifdef CONFIG_DEBUG_FS
|
|
soundwire-bus-y += debugfs.o
|
|
endif
|
|
|
|
ifdef CONFIG_IRQ_DOMAIN
|
|
soundwire-bus-y += irq.o
|
|
endif
|
|
|
|
#AMD driver
|
|
soundwire-amd-y := amd_manager.o
|
|
obj-$(CONFIG_SOUNDWIRE_AMD) += soundwire-amd.o
|
|
|
|
#Cadence Objs
|
|
soundwire-cadence-y := cadence_master.o
|
|
obj-$(CONFIG_SOUNDWIRE_CADENCE) += soundwire-cadence.o
|
|
|
|
#Intel driver
|
|
soundwire-intel-y := intel.o intel_ace2x.o intel_ace2x_debugfs.o \
|
|
intel_auxdevice.o intel_init.o dmi-quirks.o \
|
|
intel_bus_common.o
|
|
obj-$(CONFIG_SOUNDWIRE_INTEL) += soundwire-intel.o
|
|
|
|
#Qualcomm driver
|
|
soundwire-qcom-y := qcom.o
|
|
obj-$(CONFIG_SOUNDWIRE_QCOM) += soundwire-qcom.o
|