]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: armada-37xx: Fix driver cleanup when registration failed
authorPali Rohár <pali@kernel.org>
Thu, 8 Apr 2021 11:42:20 +0000 (13:42 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 9 Apr 2021 09:47:33 +0000 (15:17 +0530)
commit9c62791d8f0869b7bf51bcd1c37a7e064667c095
tree098e5498333237b3352f21ce24f44b401518ab03
parent75c0487941f0f6f15759c78ab8b2f6743ceec189
cpufreq: armada-37xx: Fix driver cleanup when registration failed

Commit 9eefc373baf4 ("cpufreq: armada-37xx: fix frequency calculation for
opp") changed calculation of frequency passed to the dev_pm_opp_add()
function call. But the code for dev_pm_opp_remove() function call was not
updated, so the driver cleanup phase does not work when registration fails.

This fixes the issue by using the same frequency in both calls.

Signed-off-by: Pali Rohár <pali@kernel.org>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Tested-by: Anders Trier Olesen <anders.trier.olesen@gmail.com>
Tested-by: Philip Soares <philips@netisense.com>
Fixes: 9eefc373baf4 ("cpufreq: armada-37xx: fix frequency calculation for opp")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-37xx-cpufreq.c