]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: qcom: don't select HAVE_PWRCTL when PCI=n
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 Jul 2024 07:27:47 +0000 (09:27 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 19 Jul 2024 07:49:24 +0000 (09:49 +0200)
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: ed70aaac7c35 ("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>
arch/arm64/Kconfig.platforms

index d7837d89564ea7deaa35752c3fe2e5adefb24594..8f02bcc670480b8b734f4eebbed2d34a7d407f24 100644 (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.