diff options
| author | Yuan Can <yuancan@huawei.com> | 2024-10-16 17:06:15 +0800 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-10-16 15:20:21 +0530 |
| commit | 5f856d71ccdf89b4bac0ff70ebb0bb582e7f7f18 (patch) | |
| tree | eaef23b0e14312b66852ed24e7096d3853890d04 /scripts/documentation-file-ref-check | |
| parent | 41baf662a0c2cfab90d968c122f76aaeda433027 (diff) | |
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: f8ede0f700f5 ("MIPS: Loongson 2F: Add CPU frequency scaling support")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions
