diff mbox

[v3] cpufreq: armada-37xx: driver relies on cpufreq-dt

Message ID 20180424154506.17526-1-miquel.raynal@bootlin.com (mailing list archive)
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

Miquel Raynal April 24, 2018, 3:45 p.m. UTC
Armada-37xx driver registers a cpufreq-dt driver. Not having
CONFIG_CPUFREQ_DT selected leads to a silent abort during the probe.
Prevent that situation by having the former depending on the latter.

Fixes: 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx")
Cc: stable@vger.kernel.org # 4.16
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
---

Changes since v2

Comments

Rafael J. Wysocki May 13, 2018, 8:50 a.m. UTC | #1
On Tuesday, April 24, 2018 5:45:06 PM CEST Miquel Raynal wrote:
> Armada-37xx driver registers a cpufreq-dt driver. Not having
> CONFIG_CPUFREQ_DT selected leads to a silent abort during the probe.
> Prevent that situation by having the former depending on the latter.
> 
> Fixes: 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx")
> Cc: stable@vger.kernel.org # 4.16
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> 
> Changes since v2
> ================
>  * Added the kernel revision in the Cc: stable tag.
>  * Added Viresh's Acked-by.
> 
> Changes since v1
> ================
>  * Changed 'select' by 'depends on'
>  * Added Fixes + Cc: stable tags
> 
>  drivers/cpufreq/Kconfig.arm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
> index 7f56fe5183f2..2c64ee68ea8b 100644
> --- a/drivers/cpufreq/Kconfig.arm
> +++ b/drivers/cpufreq/Kconfig.arm
> @@ -20,7 +20,7 @@ config ACPI_CPPC_CPUFREQ
>  
>  config ARM_ARMADA_37XX_CPUFREQ
>  	tristate "Armada 37xx CPUFreq support"
> -	depends on ARCH_MVEBU
> +	depends on ARCH_MVEBU && CPUFREQ_DT
>  	help
>  	  This adds the CPUFreq driver support for Marvell Armada 37xx SoCs.
>  	  The Armada 37xx PMU supports 4 frequency and VDD levels.
> 

Applied, thanks!
diff mbox

Patch

================
 * Added the kernel revision in the Cc: stable tag.
 * Added Viresh's Acked-by.

Changes since v1
================
 * Changed 'select' by 'depends on'
 * Added Fixes + Cc: stable tags

 drivers/cpufreq/Kconfig.arm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index 7f56fe5183f2..2c64ee68ea8b 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -20,7 +20,7 @@  config ACPI_CPPC_CPUFREQ
 
 config ARM_ARMADA_37XX_CPUFREQ
 	tristate "Armada 37xx CPUFreq support"
-	depends on ARCH_MVEBU
+	depends on ARCH_MVEBU && CPUFREQ_DT
 	help
 	  This adds the CPUFreq driver support for Marvell Armada 37xx SoCs.
 	  The Armada 37xx PMU supports 4 frequency and VDD levels.