]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: powernv: Fix bugs in powernv_cpufreq_{init/exit}
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Fri, 26 Feb 2016 10:36:51 +0000 (16:06 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Feb 2016 21:18:19 +0000 (22:18 +0100)
commit2686bea8e92b32f65ef8731abb35f878e6c2a9d0
tree2a77805decfc2d69b66e15e743d88c55b8bad3df
parent1f261d371cf2c657364af944386572e78db5687e
cpufreq: powernv: Fix bugs in powernv_cpufreq_{init/exit}

Unregister the notifiers if cpufreq_driver_register() fails in
powernv_cpufreq_init(). Re-arrange the unregistration and cleanup routines
in powernv_cpufreq_exit() to free all the resources after the driver
has unregistered.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c