ANDROID: pinctrl: qcom: Kconfig: Make new PINCTRL_SM8250 depend on QCOM_SCM || !QCOM_SCM

The PINCTRL_MSM code depends on QCOM_SCM, so if QCOM_SCM is a
module the PINCTRL_MSM code needs to be as well. However, the
PINCTRL_MSM isn't a visible option, and is only selected by
other options, so make all the options that select it dependent
on QCOM_SCM || !QCOM_SCM which makes sure the option is a module
if the QCOM_SCM code is also a module.

Would be welcome to ideas of simpler ways of expressing this.

This patch just adds another entry as a new PINCTRL_MSM selector
was added upstream, and fixes build issues with arm64 defconfig

Fixes: 4e3ec9e407 ("pinctrl: qcom: Add sm8250 pinctrl driver.")
Fixes: e7b258acf8 ("ANDROID: pinctrl: qcom: Kconfig: Make PINCTRL_MSM selectors depend on QCOM_SCM || !QCOM_SCM")
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I7c7b9b46d17ccc5d29e81be3b0b6ca77b3f139d3
This commit is contained in:
John Stultz
2020-04-20 21:33:36 +00:00
committed by Todd Kjos
parent fd5e6828d3
commit 5eea06c8df

View File

@@ -242,6 +242,7 @@ config PINCTRL_SM8150
config PINCTRL_SM8250
tristate "Qualcomm Technologies Inc SM8250 pin controller driver"
depends on GPIOLIB && OF
depends on QCOM_SCM || !QCOM_SCM
select PINCTRL_MSM
help
This is the pinctrl, pinmux, pinconf and gpiolib driver for the