mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -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
|
|
@ -277,7 +277,7 @@ static struct kobj_type ktype_state_cpuidle = {
|
|||
|
||||
static void inline cpuidle_free_state_kobj(struct cpuidle_device *device, int i)
|
||||
{
|
||||
kobject_unregister(&device->kobjs[i]->kobj);
|
||||
kobject_put(&device->kobjs[i]->kobj);
|
||||
wait_for_completion(&device->kobjs[i]->kobj_unregister);
|
||||
kfree(device->kobjs[i]);
|
||||
device->kobjs[i] = NULL;
|
||||
|
|
@ -358,5 +358,5 @@ void cpuidle_remove_sysfs(struct sys_device *sysdev)
|
|||
struct cpuidle_device *dev;
|
||||
|
||||
dev = per_cpu(cpuidle_devices, cpu);
|
||||
kobject_unregister(&dev->kobj);
|
||||
kobject_put(&dev->kobj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue