Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/1b7e23500e7449593393115cc0954af441b0c730.1597762400.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mauro Carvalho Chehab and committed by
Greg Kroah-Hartman
78dd4243 561e174e

+3 -1
+3 -1
drivers/staging/hikey9xx/Kconfig
··· 5 5 tristate "Hisilicon 3670 SPMI Controller" 6 6 select IRQ_DOMAIN_HIERARCHY 7 7 depends on HAS_IOMEM 8 + depends on SPMI 8 9 help 9 10 If you say yes to this option, support will be included for the 10 11 built-in SPMI PMIC Arbiter interface on Hisilicon 3670 ··· 15 14 config MFD_HI6421_SPMI 16 15 tristate "HiSilicon Hi6421v600 SPMI PMU/Codec IC" 17 16 depends on OF 17 + depends on SPMI 18 18 select MFD_CORE 19 19 help 20 20 Add support for HiSilicon Hi6421v600 SPMI PMIC. Hi6421 includes ··· 30 28 # to be placed at drivers/regulator 31 29 config REGULATOR_HI6421V600 32 30 tristate "HiSilicon Hi6421v600 PMIC voltage regulator support" 33 - depends on MFD_HI6421_PMIC && OF 31 + depends on MFD_HI6421_SPMI && OF 34 32 help 35 33 This driver provides support for the voltage regulators on 36 34 HiSilicon Hi6421v600 PMU / Codec IC.