mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -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
|
|
@ -1026,7 +1026,7 @@ pdcs_unregister_pathentries(void)
|
|||
for (i = 0; (entry = pdcspath_entries[i]); i++) {
|
||||
read_lock(&entry->rw_lock);
|
||||
if (entry->ready >= 2)
|
||||
kobject_unregister(&entry->kobj);
|
||||
kobject_put(&entry->kobj);
|
||||
read_unlock(&entry->rw_lock);
|
||||
}
|
||||
}
|
||||
|
|
@ -1086,7 +1086,7 @@ fail_pdcsreg:
|
|||
kset_unregister(paths_kset);
|
||||
|
||||
fail_ksetreg:
|
||||
kobject_unregister(stable_kobj);
|
||||
kobject_put(stable_kobj);
|
||||
|
||||
fail_firmreg:
|
||||
printk(KERN_INFO PDCS_PREFIX " bailing out\n");
|
||||
|
|
@ -1098,7 +1098,7 @@ pdc_stable_exit(void)
|
|||
{
|
||||
pdcs_unregister_pathentries();
|
||||
kset_unregister(paths_kset);
|
||||
kobject_unregister(stable_kobj);
|
||||
kobject_put(stable_kobj);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue