cpufreq: stats: free table and remove sysfs entry in a single routine
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 7 Jan 2014 01:40:12 +0000 (07:10 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Jan 2014 01:00:44 +0000 (02:00 +0100)
commit2d13594dcb7eaa41fa180e8a3b27a8f10845381f
tree332e3cdd241084135283e4658a7fa98a95404b77
parent027cc2e4a6127fdf29e17a422aacb5ecd9830cbb
cpufreq: stats: free table and remove sysfs entry in a single routine

We don't have code paths now where we need to do these two things
separately, so it is better do them in a single routine. Just as
they are allocated in a single routine.

Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c