]> git.hungrycats.org Git - linux/commitdiff
clk: qcom: Fix SM_GPUCC_8650 dependencies
authorNathan Chancellor <nathan@kernel.org>
Mon, 18 Mar 2024 15:18:11 +0000 (08:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:48 +0000 (09:49 +0200)
[ Upstream commit 07fb0a76bb757990b99fc2ab78ad7d1709cc441d ]

CONFIG_SM_GCC_8650 depends on ARM64 but it is selected by
CONFIG_SM_GPUCC_8650, which can be selected on ARM, resulting in a
Kconfig warning.

WARNING: unmet direct dependencies detected for SM_GCC_8650
  Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=y] && (ARM64 || COMPILE_TEST [=n])
  Selected by [y]:
  - SM_GPUCC_8650 [=y] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=y]

Add the same dependencies to CONFIG_SM_GPUCC_8650 to resolve the
warning.

Fixes: 8676fd4f3874 ("clk: qcom: add the SM8650 GPU Clock Controller driver")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240318-fix-some-qcom-kconfig-deps-v1-2-ea0773e3df5a@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/Kconfig

index 67f1151a3d2b07cf562c83cab8b2b0ef4c922270..be35803c7a4bf1f6245aaf0d8641a31d8cf12e66 100644 (file)
@@ -1070,6 +1070,7 @@ config SM_GPUCC_8550
 
 config SM_GPUCC_8650
        tristate "SM8650 Graphics Clock Controller"
+       depends on ARM64 || COMPILE_TEST
        select SM_GCC_8650
        help
          Support for the graphics clock controller on SM8650 devices.