mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
Kobject: convert remaining 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 <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
197b12d679
commit
78a2d906b4
5 changed files with 9 additions and 10 deletions
|
@ -664,7 +664,7 @@ struct kobject *kobject_create(void)
|
|||
*
|
||||
* This function creates a kset structure dynamically and registers it
|
||||
* with sysfs. When you are finished with this structure, call
|
||||
* kobject_unregister() and the structure will be dynamically freed when
|
||||
* kobject_put() and the structure will be dynamically freed when
|
||||
* it is no longer being used.
|
||||
*
|
||||
* If the kobject was not able to be created, NULL will be returned.
|
||||
|
@ -761,7 +761,7 @@ void kset_unregister(struct kset * k)
|
|||
{
|
||||
if (!k)
|
||||
return;
|
||||
kobject_unregister(&k->kobj);
|
||||
kobject_put(&k->kobj);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue