cpufreq: brcmstb-avs-cpufreq: Fix initial command check
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 22 May 2019 18:45:46 +0000 (11:45 -0700)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 4 Jun 2019 04:01:33 +0000 (09:31 +0530)
commit22a26cc6a51ef73dcfeb64c50513903f6b2d53d8
tree8dd2b3ea284984148fa203810d30c33f92ab990c
parent036eb5c6d532a0fa1cea854814628be625809c4e
cpufreq: brcmstb-avs-cpufreq: Fix initial command check

There is a logical error in brcm_avs_is_firmware_loaded() whereby if the
firmware returns -EINVAL, we will be reporting this as an error. The
comment is correct, the code was not.

Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/brcmstb-avs-cpufreq.c