pinctrl: Rework Kconfig dependency for BM1880 pinctrl driver
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 25 Apr 2019 08:32:24 +0000 (14:02 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 3 May 2019 06:53:13 +0000 (07:53 +0100)
Make the BM1880 SoC pinctrl driver depend on COMPILE_TEST to get compiler
test coverage and also select this driver by default for ARCH_BITMAIN
platform.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index c4ac4bf1e1e4a3073586ab3aa14aba43307c088f..19d8af9a36a282fe9046daae152c2db84d28ab6c 100644 (file)
@@ -110,7 +110,8 @@ config PINCTRL_AMD
 
 config PINCTRL_BM1880
        bool "Bitmain BM1880 Pinctrl driver"
-       depends on ARCH_BITMAIN
+       depends on OF && (ARCH_BITMAIN || COMPILE_TEST)
+       default ARCH_BITMAIN
        select PINMUX
        help
          Pinctrl driver for Bitmain BM1880 SoC.