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 | 197b12d6796a3bca187f22a8978a33d51e2bcd79 (patch) | |
tree | 706ff3454f03d4aa8ca4d76010479d7f9d2b36f4 /fs/ecryptfs/main.c | |
parent | c10997f6575f476ff38442fa18fd4a0d80345f9d (diff) |
Kobject: convert fs/* 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 <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ecryptfs/main.c')
-rw-r--r-- | fs/ecryptfs/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 4f1332107bbd..0249aa4ae181 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -767,7 +767,7 @@ static int do_sysfs_registration(void) | |||
767 | if (rc) { | 767 | if (rc) { |
768 | printk(KERN_ERR | 768 | printk(KERN_ERR |
769 | "Unable to create ecryptfs version attributes\n"); | 769 | "Unable to create ecryptfs version attributes\n"); |
770 | kobject_unregister(ecryptfs_kobj); | 770 | kobject_put(ecryptfs_kobj); |
771 | } | 771 | } |
772 | out: | 772 | out: |
773 | return rc; | 773 | return rc; |
@@ -776,7 +776,7 @@ out: | |||
776 | static void do_sysfs_unregistration(void) | 776 | static void do_sysfs_unregistration(void) |
777 | { | 777 | { |
778 | sysfs_remove_group(ecryptfs_kobj, &attr_group); | 778 | sysfs_remove_group(ecryptfs_kobj, &attr_group); |
779 | kobject_unregister(ecryptfs_kobj); | 779 | kobject_put(ecryptfs_kobj); |
780 | } | 780 | } |
781 | 781 | ||
782 | static int __init ecryptfs_init(void) | 782 | static int __init ecryptfs_init(void) |