Commit 369f7722 authored by Yu-Chun Lin's avatar Yu-Chun Lin Committed by Linus Walleij
Browse files

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.

Fixes: e99ce780 ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")
Signed-off-by: default avatarYu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 51891927
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"