Skip to content

Commit

Permalink
pinctrl: sprd: Fix the kconfig warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Baolin Wang authored and Linus Walleij committed Mar 3, 2020
1 parent a0bb89e commit 9eb81d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/pinctrl/sprd/Kconfig
Original file line number Diff line number Diff line change
@@ -4,9 +4,7 @@
#

config PINCTRL_SPRD
tristate "Spreadtrum pinctrl driver"
depends on OF
depends on ARCH_SPRD || COMPILE_TEST
tristate
select PINMUX
select PINCONF
select GENERIC_PINCONF
@@ -16,6 +14,8 @@ config PINCTRL_SPRD

config PINCTRL_SPRD_SC9860
tristate "Spreadtrum SC9860 pinctrl driver"
depends on OF
depends on ARCH_SPRD || COMPILE_TEST
select PINCTRL_SPRD
help
Say Y here to enable Spreadtrum SC9860 pinctrl driver

0 comments on commit 9eb81d6

Please sign in to comment.