]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: change of_find_spi_controller_by_node() gating to CONFIG_OF
authorOder Chiou <oder_chiou@realtek.com>
Wed, 31 Dec 2025 02:36:49 +0000 (10:36 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2026 13:18:50 +0000 (13:18 +0000)
commit037f8d896688bf3384eb6bf34e24e8fbc9f6e02d
treed33739da3e8ad95cff44a2e173414537493f39ff
parentee69f55eb183efb43da14cdad72910b1b1cc2932
spi: change of_find_spi_controller_by_node() gating to CONFIG_OF

Currently, the helper of_find_spi_controller_by_node() is gated under
CONFIG_OF_DYNAMIC. This prevents drivers from using it in all CONFIG_OF
configurations.

This patch moves the gating to CONFIG_OF, keeping the inline fallback
returning NULL when Device Tree support is disabled.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://patch.msgid.link/6d8ae977d9f4726ea23ad5382638750593f9a2e4.1767148150.git.oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h