Skip to content
Commit b8f85833 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

cpufreq: exit() callback is optional



The exit() callback is optional and shouldn't be called without checking
a valid pointer first.

Also, we must clear freq_table pointer even if the exit() callback isn't
present.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Fixes: 91a12e91 ("cpufreq: Allow light-weight tear down and bring up of CPUs")
Fixes: f339f354 ("cpufreq: Rearrange locking in cpufreq_remove_dev()")
Reported-by: default avatarLizhe <sensor1010@163.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5196123d
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