diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-20 11:13:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:40 -0500 |
commit | 78a2d906b40fe530ea800c1e873bfe8f02326f1e (patch) | |
tree | ebeef35150816fa807f71e596a9aaf711ad10a90 /kernel/ksysfs.c | |
parent | 197b12d6796a3bca187f22a8978a33d51e2bcd79 (diff) |
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>
Diffstat (limited to 'kernel/ksysfs.c')
-rw-r--r-- | kernel/ksysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c index 1081aff5fb9e..e53bc30e9ba5 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c | |||
@@ -154,7 +154,7 @@ notes_exit: | |||
154 | group_exit: | 154 | group_exit: |
155 | sysfs_remove_group(kernel_kobj, &kernel_attr_group); | 155 | sysfs_remove_group(kernel_kobj, &kernel_attr_group); |
156 | kset_exit: | 156 | kset_exit: |
157 | kobject_unregister(kernel_kobj); | 157 | kobject_put(kernel_kobj); |
158 | exit: | 158 | exit: |
159 | return error; | 159 | return error; |
160 | } | 160 | } |