aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-18 01:05:35 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:38 -0500
commitb2d6db5878a0832659ed58476357eea2db915550 (patch)
treec7c9e98431078ca7b0405e8003bd905ab62df7c4 /lib/kobject.c
parent9e7bbccd0290e720e0874443932869c55f63d5a8 (diff)
Kobject: rename kobject_add_ng() to kobject_add()
Now that the old kobject_add() function is gone, rename kobject_add_ng() to kobject_add() 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/kobject.c')
-rw-r--r--lib/kobject.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index d04789fa4da9..359e114790cb 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -350,7 +350,7 @@ static int kobject_add_varg(struct kobject *kobj, struct kobject *parent,
350} 350}
351 351
352/** 352/**
353 * kobject_add_ng - the main kobject add function 353 * kobject_add - the main kobject add function
354 * @kobj: the kobject to add 354 * @kobj: the kobject to add
355 * @parent: pointer to the parent of the kobject. 355 * @parent: pointer to the parent of the kobject.
356 * @fmt: format to name the kobject with. 356 * @fmt: format to name the kobject with.
@@ -381,8 +381,8 @@ static int kobject_add_varg(struct kobject *kobj, struct kobject *parent,
381 * kobject_uevent() with the UEVENT_ADD parameter to ensure that 381 * kobject_uevent() with the UEVENT_ADD parameter to ensure that
382 * userspace is properly notified of this kobject's creation. 382 * userspace is properly notified of this kobject's creation.
383 */ 383 */
384int kobject_add_ng(struct kobject *kobj, struct kobject *parent, 384int kobject_add(struct kobject *kobj, struct kobject *parent,
385 const char *fmt, ...) 385 const char *fmt, ...)
386{ 386{
387 va_list args; 387 va_list args;
388 int retval; 388 int retval;
@@ -396,7 +396,7 @@ int kobject_add_ng(struct kobject *kobj, struct kobject *parent,
396 396
397 return retval; 397 return retval;
398} 398}
399EXPORT_SYMBOL(kobject_add_ng); 399EXPORT_SYMBOL(kobject_add);
400 400
401/** 401/**
402 * kobject_init_and_add - initialize a kobject structure and add it to the kobject hierarchy 402 * kobject_init_and_add - initialize a kobject structure and add it to the kobject hierarchy
@@ -406,8 +406,8 @@ EXPORT_SYMBOL(kobject_add_ng);
406 * @fmt: the name of the kobject. 406 * @fmt: the name of the kobject.
407 * 407 *
408 * This function combines the call to kobject_init_ng() and 408 * This function combines the call to kobject_init_ng() and
409 * kobject_add_ng(). The same type of error handling after a call to 409 * kobject_add(). The same type of error handling after a call to
410 * kobject_add_ng() and kobject lifetime rules are the same here. 410 * kobject_add() and kobject lifetime rules are the same here.
411 */ 411 */
412int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, 412int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype,
413 struct kobject *parent, const char *fmt, ...) 413 struct kobject *parent, const char *fmt, ...)
@@ -677,7 +677,7 @@ struct kobject *kobject_create_and_add(const char *name, struct kobject *parent)
677 if (!kobj) 677 if (!kobj)
678 return NULL; 678 return NULL;
679 679
680 retval = kobject_add_ng(kobj, parent, "%s", name); 680 retval = kobject_add(kobj, parent, "%s", name);
681 if (retval) { 681 if (retval) {
682 printk(KERN_WARNING "%s: kobject_add error: %d\n", 682 printk(KERN_WARNING "%s: kobject_add error: %d\n",
683 __FUNCTION__, retval); 683 __FUNCTION__, retval);