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)
commitc5e29ea7ac144113f60dc540d7bb00cea5056b10
tree2a77805decfc2d69b66e15e743d88c55b8bad3df
parentf05c966585ec5295516f946505661ec2f9966e5a
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