Skip to content
Commit d776790a authored by Hector.Yuan's avatar Hector.Yuan Committed by Viresh Kumar
Browse files

cpufreq: mediatek-hw: Fix double devm_remap in hotplug case



When hotpluging policy cpu, cpu policy init will be called multiple times.
Unplug CPU7 -> CPU6 -> CPU5 -> CPU4, then plug CPU4 again.
In this case, devm_remap will double remap and resource allocate fail.
So replace devm_remap to ioremap and release resources in cpu policy exit.

Signed-off-by: default avatarHector.Yuan <hector.yuan@mediatek.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 8f5783ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment