diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-18 01:05:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:38 -0500 |
commit | f9cb074bff8e762ef24c44678a5a7d907f82fbeb (patch) | |
tree | 50438fc90b8f6170dd8eb5d43712c61719a16304 /lib | |
parent | e1543ddf739b22a8c4218716ad50c26b3e147403 (diff) |
Kobject: rename kobject_init_ng() to kobject_init()
Now that the old kobject_init() function is gone, rename
kobject_init_ng() to kobject_init() to clean up the namespace.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 10d977b6e69d..4cc231c86225 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -287,7 +287,7 @@ int kobject_set_name(struct kobject *kobj, const char *fmt, ...) | |||
287 | EXPORT_SYMBOL(kobject_set_name); | 287 | EXPORT_SYMBOL(kobject_set_name); |
288 | 288 | ||
289 | /** | 289 | /** |
290 | * kobject_init_ng - initialize a kobject structure | 290 | * kobject_init - initialize a kobject structure |
291 | * @kobj: pointer to the kobject to initialize | 291 | * @kobj: pointer to the kobject to initialize |
292 | * @ktype: pointer to the ktype for this kobject. | 292 | * @ktype: pointer to the ktype for this kobject. |
293 | * | 293 | * |
@@ -298,7 +298,7 @@ EXPORT_SYMBOL(kobject_set_name); | |||
298 | * to kobject_put(), not by a call to kfree directly to ensure that all of | 298 | * to kobject_put(), not by a call to kfree directly to ensure that all of |
299 | * the memory is cleaned up properly. | 299 | * the memory is cleaned up properly. |
300 | */ | 300 | */ |
301 | void kobject_init_ng(struct kobject *kobj, struct kobj_type *ktype) | 301 | void kobject_init(struct kobject *kobj, struct kobj_type *ktype) |
302 | { | 302 | { |
303 | char *err_str; | 303 | char *err_str; |
304 | 304 | ||
@@ -326,7 +326,7 @@ error: | |||
326 | printk(KERN_ERR "kobject: %s\n", err_str); | 326 | printk(KERN_ERR "kobject: %s\n", err_str); |
327 | dump_stack(); | 327 | dump_stack(); |
328 | } | 328 | } |
329 | EXPORT_SYMBOL(kobject_init_ng); | 329 | EXPORT_SYMBOL(kobject_init); |
330 | 330 | ||
331 | static int kobject_add_varg(struct kobject *kobj, struct kobject *parent, | 331 | static int kobject_add_varg(struct kobject *kobj, struct kobject *parent, |
332 | const char *fmt, va_list vargs) | 332 | const char *fmt, va_list vargs) |
@@ -401,7 +401,7 @@ EXPORT_SYMBOL(kobject_add); | |||
401 | * @parent: pointer to the parent of this kobject. | 401 | * @parent: pointer to the parent of this kobject. |
402 | * @fmt: the name of the kobject. | 402 | * @fmt: the name of the kobject. |
403 | * | 403 | * |
404 | * This function combines the call to kobject_init_ng() and | 404 | * This function combines the call to kobject_init() and |
405 | * kobject_add(). The same type of error handling after a call to | 405 | * kobject_add(). The same type of error handling after a call to |
406 | * kobject_add() and kobject lifetime rules are the same here. | 406 | * kobject_add() and kobject lifetime rules are the same here. |
407 | */ | 407 | */ |
@@ -411,7 +411,7 @@ int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, | |||
411 | va_list args; | 411 | va_list args; |
412 | int retval; | 412 | int retval; |
413 | 413 | ||
414 | kobject_init_ng(kobj, ktype); | 414 | kobject_init(kobj, ktype); |
415 | 415 | ||
416 | va_start(args, fmt); | 416 | va_start(args, fmt); |
417 | retval = kobject_add_varg(kobj, parent, fmt, args); | 417 | retval = kobject_add_varg(kobj, parent, fmt, args); |
@@ -636,7 +636,7 @@ static struct kobj_type dynamic_kobj_ktype = { | |||
636 | * | 636 | * |
637 | * If the kobject was not able to be created, NULL will be returned. | 637 | * If the kobject was not able to be created, NULL will be returned. |
638 | * The kobject structure returned from here must be cleaned up with a | 638 | * The kobject structure returned from here must be cleaned up with a |
639 | * call to kobject_put() and not kfree(), as kobject_init_ng() has | 639 | * call to kobject_put() and not kfree(), as kobject_init() has |
640 | * already been called on this structure. | 640 | * already been called on this structure. |
641 | */ | 641 | */ |
642 | struct kobject *kobject_create(void) | 642 | struct kobject *kobject_create(void) |
@@ -647,7 +647,7 @@ struct kobject *kobject_create(void) | |||
647 | if (!kobj) | 647 | if (!kobj) |
648 | return NULL; | 648 | return NULL; |
649 | 649 | ||
650 | kobject_init_ng(kobj, &dynamic_kobj_ktype); | 650 | kobject_init(kobj, &dynamic_kobj_ktype); |
651 | return kobj; | 651 | return kobj; |
652 | } | 652 | } |
653 | 653 | ||