Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sprd: Fix the kconfig warning

On X86 plaform, if the CONFIG_OF is not selected, and set the
CONFIG_SPRD_SC9860 as 'm', that will cause below waring:

WARNING: unmet direct dependencies detected for PINCTRL_SPRD
Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y])
Selected by [m]:
- PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y]

Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860
to fix the warning.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/eeb12d7843fb06f80e19f98eb25711231c3b610f.1583205650.git.baolin.wang7@gmail.com
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Baolin Wang and committed by
Linus Walleij
9eb81d69 a0bb89e8

+3 -3
+3 -3
drivers/pinctrl/sprd/Kconfig
··· 4 4 # 5 5 6 6 config PINCTRL_SPRD 7 - tristate "Spreadtrum pinctrl driver" 8 - depends on OF 9 - depends on ARCH_SPRD || COMPILE_TEST 7 + tristate 10 8 select PINMUX 11 9 select PINCONF 12 10 select GENERIC_PINCONF ··· 14 16 15 17 config PINCTRL_SPRD_SC9860 16 18 tristate "Spreadtrum SC9860 pinctrl driver" 19 + depends on OF 20 + depends on ARCH_SPRD || COMPILE_TEST 17 21 select PINCTRL_SPRD 18 22 help 19 23 Say Y here to enable Spreadtrum SC9860 pinctrl driver