OSDN Git Service

reset: ti-sci: honor TI_SCI_PROTOCOL setting when not COMPILE_TEST
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 30 Oct 2022 05:56:36 +0000 (22:56 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 3 Jan 2023 10:29:33 +0000 (11:29 +0100)
commit13678f3feb3009b23aab424864fd0dac0765c83e
tree2f28c9bb44875fc340a1c025e1c3da6a4b8aabce
parent1b929c02afd37871d5afb9d498426f83432e71c2
reset: ti-sci: honor TI_SCI_PROTOCOL setting when not COMPILE_TEST

There is a build error when COMPILE_TEST=y, TI_SCI_PROTOCOL=m,
and RESET_TI_SCI=y:

drivers/reset/reset-ti-sci.o: in function `ti_sci_reset_probe':
reset-ti-sci.c:(.text+0x22c): undefined reference to `devm_ti_sci_get_handle'

Fix this by making RESET_TI_SCI honor the Kconfig setting of
TI_SCI_PROTOCOL when COMPILE_TEST is not set. When COMPILE_TEST is set,
TI_SCI_PROTOCOL must be disabled (=n).

Fixes: a6af504184c9 ("reset: ti-sci: Allow building under COMPILE_TEST")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Tero Kristo <kristo@kernel.org>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20221030055636.3139-1-rdunlap@infradead.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig