]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: realtek: Select REGMAP_MMIO for RTD driver
authorYu-Chun Lin <eleanor.lin@realtek.com>
Thu, 23 Oct 2025 07:55:29 +0000 (15:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:43:29 +0000 (11:43 +0100)
[ Upstream commit 369f772299821f93f872bf1b4d7d7ed2fc50243b ]

The pinctrl-rtd driver uses 'devm_regmap_init_mmio', which requires
'REGMAP_MMIO' to be enabled.

Without this selection, the build fails with an undefined reference:
aarch64-none-linux-gnu-ld: drivers/pinctrl/realtek/pinctrl-rtd.o: in
function rtd_pinctrl_probe': pinctrl-rtd.c:(.text+0x5a0): undefined
reference to __devm_regmap_init_mmio_clk'

Fix this by selecting 'REGMAP_MMIO' in the Kconfig.

Fixes: e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")
Signed-off-by: Yu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/realtek/Kconfig

index 0fc6bd4fcb7ecebbee66526a99d64644cdcd56a5..400c9e5b16ada54af37a724932b32f8c24e3ab8e 100644 (file)
@@ -6,6 +6,7 @@ config PINCTRL_RTD
        default y
        select PINMUX
        select GENERIC_PINCONF
+       select REGMAP_MMIO
 
 config PINCTRL_RTD1619B
        tristate "Realtek DHC 1619B pin controller driver"