pinctrl: realtek: Select REGMAP_MMIO for RTD driver
Subsystems (2)
Yu-Chun Lin
maintainerPATCH 1/1 pinctrl: realtek: Select REGMAP_MMIO for RTD driver
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.
--- drivers/pinctrl/realtek/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/pinctrl/realtek/Kconfig +1 -0
@@ -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"
Signature · 1 line
2.34.1
Quoted 8 lines · Yu-Chun Lin
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 functionrtd_pinctrl_probe': pinctrl-rtd.c:(.text+0x5a0): undefined reference to__devm_regmap_init_mmio_clk'
Quoted 4 lines
Fix this by selecting '
REGMAP_MMIO' in theKconfig.Fixes e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")Signed-off-by Yu-Chun Lin <[email protected]>
Right!
Patch applied for fixes.
Yours,
Linus Walleij