mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Kobject: convert drivers/* from kobject_unregister() to kobject_put()
There is no need for kobject_unregister() anymore, thanks to Kay's kobject cleanup changes, so replace all instances of it with kobject_put(). Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
38a382ae5d
commit
c10997f657
17 changed files with 40 additions and 42 deletions
|
|
@ -913,7 +913,7 @@ err_out_unregister:
|
|||
cpufreq_cpu_data[j] = NULL;
|
||||
spin_unlock_irqrestore(&cpufreq_driver_lock, flags);
|
||||
|
||||
kobject_unregister(&policy->kobj);
|
||||
kobject_put(&policy->kobj);
|
||||
wait_for_completion(&policy->kobj_unregister);
|
||||
|
||||
err_out_driver_exit:
|
||||
|
|
@ -1030,8 +1030,6 @@ static int __cpufreq_remove_dev (struct sys_device * sys_dev)
|
|||
|
||||
unlock_policy_rwsem_write(cpu);
|
||||
|
||||
kobject_unregister(&data->kobj);
|
||||
|
||||
kobject_put(&data->kobj);
|
||||
|
||||
/* we need to make sure that the underlying kobj is actually
|
||||
|
|
|
|||
Loading…
Reference in a new issue