cpufreq: stats: Fix error handling in __cpufreq_stats_create_table()
authorSaravana Kannan <skannan@codeaurora.org>
Fri, 28 Feb 2014 01:58:35 +0000 (17:58 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Mar 2014 23:55:50 +0000 (00:55 +0100)
commit0b7528d963e7dda51dd07fa7b1f14a9bf03b1cee
tree16d427ae0e874123cf1e30315da3142a3313cd2a
parentb24a5b6512a6fb89f3b99b9b0f829b4448e62db0
cpufreq: stats: Fix error handling in __cpufreq_stats_create_table()

Remove sysfs group if __cpufreq_stats_create_table() fails after creating
one.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c