]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: fix irq-ti-sci link error
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 13:01:05 +0000 (15:01 +0200)
committerOlof Johansson <olof@lixom.net>
Mon, 1 Jul 2019 22:26:09 +0000 (15:26 -0700)
commit4970bc032cdff4597fa6b319bfdb10a9d269824e
tree984d1262a51c83093d6543c8a9eabff1d568a8b9
parent2256ebe4b66554c52db655780f9b35d94b5ab552
soc: ti: fix irq-ti-sci link error

The irqchip driver depends on the SoC specific driver, but we want
to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
  Depends on [n]: SOC_TI [=n]
  Selected by [y]:
  - TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Rearrange the Kconfig and Makefile so we build the soc driver whenever
its users are there, regardless of the SOC_TI option.

Fixes: e1c7e139450d ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes: 6a4c56bbda21 ("irqchip/ti-sci-inta: Add msi domain support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/soc/Makefile
drivers/soc/ti/Kconfig