cpufreq / intel_pstate: Fix intel_pstate_init() error path
authorDirk Brandewie <dirk.brandewie@gmail.com>
Tue, 5 Mar 2013 22:15:27 +0000 (14:15 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Mar 2013 22:34:58 +0000 (23:34 +0100)
commit907cc908108b16ae87b7165be992511c968159f0
treedb9bf7f809c64ccb6678878ad6b828fef2d81395
parent37530f2bda039774bd65aea14cc1d1dd26a82b9e
cpufreq / intel_pstate: Fix intel_pstate_init() error path

If cpufreq_register_driver() fails just free memory that has been
allocated and return. intel_pstate_exit() function is removed since we
are built-in only now there is no reason for a module exit procedure.

Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c