clk: qcom: Select QCOM_GDSC with MSM_GCC_8998
authorMarc Gonzalez <marc.w.gonzalez@free.fr>
Fri, 11 Jan 2019 13:37:43 +0000 (14:37 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 11 Jan 2019 18:39:15 +0000 (10:39 -0800)
If QCOM_GDSC is disabled, gdsc_register() returns -ENOSYS, which causes
gcc_msm8998_probe() to fail. Select QCOM_GDSC to solve the problem.

gcc-msm8998: probe of 100000.clock-controller failed with error -38

Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
Fixes: b5f5f525c547 ("clk: qcom: Add MSM8998 Global Clock Control (GCC) driver")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/Kconfig

index 1b1ba54..1c04575 100644 (file)
@@ -215,6 +215,7 @@ config MSM_MMCC_8996
 
 config MSM_GCC_8998
        tristate "MSM8998 Global Clock Controller"
+       select QCOM_GDSC
        help
          Support for the global clock controller on msm8998 devices.
          Say Y if you want to use peripheral devices such as UART, SPI,