aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
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 /drivers/base
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 'drivers/base')
-rw-r--r--drivers/base/class.c4
-rw-r--r--drivers/base/core.c6
-rw-r--r--drivers/base/driver.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 624b3316e938..8e3cba224384 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -586,8 +586,8 @@ int class_device_add(struct class_device *class_dev)
586 else 586 else
587 class_dev->kobj.parent = &parent_class->subsys.kobj; 587 class_dev->kobj.parent = &parent_class->subsys.kobj;
588 588
589 error = kobject_add_ng(&class_dev->kobj, class_dev->kobj.parent, 589 error = kobject_add(&class_dev->kobj, class_dev->kobj.parent,
590 "%s", class_dev->class_id); 590 "%s", class_dev->class_id);
591 if (error) 591 if (error)
592 goto out2; 592 goto out2;
593 593
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 06e8738ab263..e88170293ca0 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -602,7 +602,7 @@ static struct kobject *get_device_parent(struct device *dev,
602 if (!k) 602 if (!k)
603 return NULL; 603 return NULL;
604 k->kset = &dev->class->class_dirs; 604 k->kset = &dev->class->class_dirs;
605 retval = kobject_add_ng(k, parent_kobj, "%s", dev->class->name); 605 retval = kobject_add(k, parent_kobj, "%s", dev->class->name);
606 if (retval < 0) { 606 if (retval < 0) {
607 kobject_put(k); 607 kobject_put(k);
608 return NULL; 608 return NULL;
@@ -776,7 +776,7 @@ static void device_remove_class_symlinks(struct device *dev)
776 * This is part 2 of device_register(), though may be called 776 * This is part 2 of device_register(), though may be called
777 * separately _iff_ device_initialize() has been called separately. 777 * separately _iff_ device_initialize() has been called separately.
778 * 778 *
779 * This adds it to the kobject hierarchy via kobject_add_ng(), adds it 779 * This adds it to the kobject hierarchy via kobject_add(), adds it
780 * to the global and sibling lists for the device, then 780 * to the global and sibling lists for the device, then
781 * adds it to the other relevant subsystems of the driver model. 781 * adds it to the other relevant subsystems of the driver model.
782 */ 782 */
@@ -807,7 +807,7 @@ int device_add(struct device *dev)
807 goto Error; 807 goto Error;
808 808
809 /* first, register with generic layer. */ 809 /* first, register with generic layer. */
810 error = kobject_add_ng(&dev->kobj, dev->kobj.parent, "%s", dev->bus_id); 810 error = kobject_add(&dev->kobj, dev->kobj.parent, "%s", dev->bus_id);
811 if (error) 811 if (error)
812 goto Error; 812 goto Error;
813 813
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 5aacff208f21..94b697a9b4e0 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -144,7 +144,7 @@ int driver_add_kobj(struct device_driver *drv, struct kobject *kobj,
144 if (!name) 144 if (!name)
145 return -ENOMEM; 145 return -ENOMEM;
146 146
147 return kobject_add_ng(kobj, &drv->p->kobj, "%s", name); 147 return kobject_add(kobj, &drv->p->kobj, "%s", name);
148} 148}
149EXPORT_SYMBOL_GPL(driver_add_kobj); 149EXPORT_SYMBOL_GPL(driver_add_kobj);
150 150