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 | c10997f6575f476ff38442fa18fd4a0d80345f9d (patch) | |
tree | 9b2bb7e647bd39fb80f23d7a6b34bf2587d660a7 /drivers/firmware | |
parent | 38a382ae5dd4f4d04e3046816b0a41836094e538 (diff) |
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 <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/edd.c | 2 | ||||
-rw-r--r-- | drivers/firmware/efivars.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index dc0b87b13505..d168223db159 100644 --- a/drivers/firmware/edd.c +++ b/drivers/firmware/edd.c | |||
@@ -693,7 +693,7 @@ edd_create_symlink_to_pcidev(struct edd_device *edev) | |||
693 | static inline void | 693 | static inline void |
694 | edd_device_unregister(struct edd_device *edev) | 694 | edd_device_unregister(struct edd_device *edev) |
695 | { | 695 | { |
696 | kobject_unregister(&edev->kobj); | 696 | kobject_put(&edev->kobj); |
697 | } | 697 | } |
698 | 698 | ||
699 | static void edd_populate_dir(struct edd_device * edev) | 699 | static void edd_populate_dir(struct edd_device * edev) |
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index b61a72fb6219..f4f709d1370b 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c | |||
@@ -397,7 +397,7 @@ static struct kobj_type efivar_ktype = { | |||
397 | static inline void | 397 | static inline void |
398 | efivar_unregister(struct efivar_entry *var) | 398 | efivar_unregister(struct efivar_entry *var) |
399 | { | 399 | { |
400 | kobject_unregister(&var->kobj); | 400 | kobject_put(&var->kobj); |
401 | } | 401 | } |
402 | 402 | ||
403 | 403 | ||
@@ -732,7 +732,7 @@ efivars_init(void) | |||
732 | kset_unregister(vars_kset); | 732 | kset_unregister(vars_kset); |
733 | 733 | ||
734 | out_firmware_unregister: | 734 | out_firmware_unregister: |
735 | kobject_unregister(efi_kobj); | 735 | kobject_put(efi_kobj); |
736 | 736 | ||
737 | out_free: | 737 | out_free: |
738 | kfree(variable_name); | 738 | kfree(variable_name); |
@@ -753,7 +753,7 @@ efivars_exit(void) | |||
753 | } | 753 | } |
754 | 754 | ||
755 | kset_unregister(vars_kset); | 755 | kset_unregister(vars_kset); |
756 | kobject_unregister(efi_kobj); | 756 | kobject_put(efi_kobj); |
757 | } | 757 | } |
758 | 758 | ||
759 | module_init(efivars_init); | 759 | module_init(efivars_init); |