Skip to content
Commit 92963903 authored by Pali Rohár's avatar Pali Rohár Committed by Viresh Kumar
Browse files

cpufreq: armada-37xx: Fix driver cleanup when registration failed



Commit 8db82563 ("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: default avatarPali Rohár <pali@kernel.org>
Acked-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: default avatarTomasz Maciej Nowak <tmn505@gmail.com>
Tested-by: default avatarAnders Trier Olesen <anders.trier.olesen@gmail.com>
Tested-by: default avatarPhilip Soares <philips@netisense.com>
Fixes: 8db82563 ("cpufreq: armada-37xx: fix frequency calculation for opp")
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent e93033af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment