Commit 78dd4243 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman

staging: hikey9xx: fix Kconfig dependency chain

Both the SPMI controller and the SPMI PMIC driver
depends on the SPMI bus support.

The dependency for the regulator is also wrong:
it should depends on the SPMI version of the HiSilicon 6421,
and not on the normal one.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/1b7e23500e7449593393115cc0954af441b0c730.1597762400.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 561e174e
...@@ -5,6 +5,7 @@ config SPMI_HISI3670 ...@@ -5,6 +5,7 @@ config SPMI_HISI3670
tristate "Hisilicon 3670 SPMI Controller" tristate "Hisilicon 3670 SPMI Controller"
select IRQ_DOMAIN_HIERARCHY select IRQ_DOMAIN_HIERARCHY
depends on HAS_IOMEM depends on HAS_IOMEM
depends on SPMI
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
built-in SPMI PMIC Arbiter interface on Hisilicon 3670 built-in SPMI PMIC Arbiter interface on Hisilicon 3670
...@@ -14,6 +15,7 @@ config SPMI_HISI3670 ...@@ -14,6 +15,7 @@ config SPMI_HISI3670
config MFD_HI6421_SPMI config MFD_HI6421_SPMI
tristate "HiSilicon Hi6421v600 SPMI PMU/Codec IC" tristate "HiSilicon Hi6421v600 SPMI PMU/Codec IC"
depends on OF depends on OF
depends on SPMI
select MFD_CORE select MFD_CORE
help help
Add support for HiSilicon Hi6421v600 SPMI PMIC. Hi6421 includes Add support for HiSilicon Hi6421v600 SPMI PMIC. Hi6421 includes
...@@ -28,7 +30,7 @@ config MFD_HI6421_SPMI ...@@ -28,7 +30,7 @@ config MFD_HI6421_SPMI
# to be placed at drivers/regulator # to be placed at drivers/regulator
config REGULATOR_HI6421V600 config REGULATOR_HI6421V600
tristate "HiSilicon Hi6421v600 PMIC voltage regulator support" tristate "HiSilicon Hi6421v600 PMIC voltage regulator support"
depends on MFD_HI6421_PMIC && OF depends on MFD_HI6421_SPMI && OF
help help
This driver provides support for the voltage regulators on This driver provides support for the voltage regulators on
HiSilicon Hi6421v600 PMU / Codec IC. HiSilicon Hi6421v600 PMU / Codec IC.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment