arm64: qcom: don't select HAVE_PWRCTL when PCI=n

The new HAVE_PWRCTL option is defined in the PCI subsystem, so
selecting it unconditionally when PCI is disabled causes a harmless
warning:

WARNING: unmet direct dependencies detected for HAVE_PWRCTL
  Depends on [n]: PCI [=n]
  Selected by [y]:
  - ARCH_QCOM [=y]

Add 'if PCI' in the qualcomm platform to hide the warning.

Fixes: ed70aaac7c ("Kconfig: reduce the amount of power sequencing noise")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Arnd Bergmann 2024-07-19 09:27:47 +02:00 committed by Bartosz Golaszewski
parent ed70aaac7c
commit 1a8c67a8b2

View File

@ -267,7 +267,7 @@ config ARCH_QCOM
bool "Qualcomm Platforms"
select GPIOLIB
select PINCTRL
select HAVE_PWRCTL
select HAVE_PWRCTL if PCI
help
This enables support for the ARMv8 based Qualcomm chipsets.