Commit 5f856d71 authored by Yuan Can's avatar Yuan Can Committed by Viresh Kumar
Browse files

cpufreq: loongson2: Unregister platform_driver on failure



When cpufreq_register_driver() returns error, the cpufreq_init() returns
without unregister platform_driver, fix by add missing
platform_driver_unregister() when cpufreq_register_driver() failed.

Fixes: f8ede0f7 ("MIPS: Loongson 2F: Add CPU frequency scaling support")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 41baf662
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment