diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 9e102af0c07b..5efd5550f4ca 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -913,7 +913,7 @@ err_out_unregister: | |||
913 | cpufreq_cpu_data[j] = NULL; | 913 | cpufreq_cpu_data[j] = NULL; |
914 | spin_unlock_irqrestore(&cpufreq_driver_lock, flags); | 914 | spin_unlock_irqrestore(&cpufreq_driver_lock, flags); |
915 | 915 | ||
916 | kobject_unregister(&policy->kobj); | 916 | kobject_put(&policy->kobj); |
917 | wait_for_completion(&policy->kobj_unregister); | 917 | wait_for_completion(&policy->kobj_unregister); |
918 | 918 | ||
919 | err_out_driver_exit: | 919 | err_out_driver_exit: |
@@ -1030,8 +1030,6 @@ static int __cpufreq_remove_dev (struct sys_device * sys_dev) | |||
1030 | 1030 | ||
1031 | unlock_policy_rwsem_write(cpu); | 1031 | unlock_policy_rwsem_write(cpu); |
1032 | 1032 | ||
1033 | kobject_unregister(&data->kobj); | ||
1034 | |||
1035 | kobject_put(&data->kobj); | 1033 | kobject_put(&data->kobj); |
1036 | 1034 | ||
1037 | /* we need to make sure that the underlying kobj is actually | 1035 | /* we need to make sure that the underlying kobj is actually |