diff mbox series

pinctrl: Rework Kconfig dependency for BM1880 pinctrl driver

Message ID 20190425083224.9762-1-manivannan.sadhasivam@linaro.org
State Accepted
Commit 8293b3c6dafd4d7440eb0ddda3092008e169bf8b
Headers show
Series pinctrl: Rework Kconfig dependency for BM1880 pinctrl driver | expand

Commit Message

Manivannan Sadhasivam April 25, 2019, 8:32 a.m. UTC
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>

---
 drivers/pinctrl/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.1

Comments

Linus Walleij April 25, 2019, 8:50 a.m. UTC | #1
On Thu, Apr 25, 2019 at 10:32 AM Manivannan Sadhasivam
<manivannan.sadhasivam@linaro.org> wrote:

> 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>


Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index c4ac4bf1e1e4..19d8af9a36a2 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -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.