aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_device_sysfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-20 11:13:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:40 -0500
commitc10997f6575f476ff38442fa18fd4a0d80345f9d (patch)
tree9b2bb7e647bd39fb80f23d7a6b34bf2587d660a7 /drivers/edac/edac_device_sysfs.c
parent38a382ae5dd4f4d04e3046816b0a41836094e538 (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/edac/edac_device_sysfs.c')
-rw-r--r--drivers/edac/edac_device_sysfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/edac/edac_device_sysfs.c b/drivers/edac/edac_device_sysfs.c
index 10e5b19a3e3b..53764577035f 100644
--- a/drivers/edac/edac_device_sysfs.c
+++ b/drivers/edac/edac_device_sysfs.c
@@ -303,7 +303,7 @@ void edac_device_unregister_sysfs_main_kobj(
303 * a) module_put() this module 303 * a) module_put() this module
304 * b) 'kfree' the memory 304 * b) 'kfree' the memory
305 */ 305 */
306 kobject_unregister(&edac_dev->kobj); 306 kobject_put(&edac_dev->kobj);
307} 307}
308 308
309/* edac_dev -> instance information */ 309/* edac_dev -> instance information */
@@ -574,7 +574,7 @@ static int edac_device_create_block(struct edac_device_ctl_info *edac_dev,
574 574
575 /* Error unwind stack */ 575 /* Error unwind stack */
576err_on_attrib: 576err_on_attrib:
577 kobject_unregister(&block->kobj); 577 kobject_put(&block->kobj);
578 578
579err_out: 579err_out:
580 return err; 580 return err;
@@ -605,7 +605,7 @@ static void edac_device_delete_block(struct edac_device_ctl_info *edac_dev,
605 /* unregister this block's kobject, SEE: 605 /* unregister this block's kobject, SEE:
606 * edac_device_ctrl_block_release() callback operation 606 * edac_device_ctrl_block_release() callback operation
607 */ 607 */
608 kobject_unregister(&block->kobj); 608 kobject_put(&block->kobj);
609} 609}
610 610
611/* instance ctor/dtor code */ 611/* instance ctor/dtor code */
@@ -672,7 +672,7 @@ static int edac_device_create_instance(struct edac_device_ctl_info *edac_dev,
672 672
673 /* error unwind stack */ 673 /* error unwind stack */
674err_release_instance_kobj: 674err_release_instance_kobj:
675 kobject_unregister(&instance->kobj); 675 kobject_put(&instance->kobj);
676 676
677err_out: 677err_out:
678 return err; 678 return err;
@@ -697,7 +697,7 @@ static void edac_device_delete_instance(struct edac_device_ctl_info *edac_dev,
697 /* unregister this instance's kobject, SEE: 697 /* unregister this instance's kobject, SEE:
698 * edac_device_ctrl_instance_release() for callback operation 698 * edac_device_ctrl_instance_release() for callback operation
699 */ 699 */
700 kobject_unregister(&instance->kobj); 700 kobject_put(&instance->kobj);
701} 701}
702 702
703/* 703/*