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>
This commit is contained in:
Greg Kroah-Hartman
2007-12-17 23:05:35 -07:00
parent e1543ddf73
commit f9cb074bff
10 changed files with 18 additions and 18 deletions

View File

@@ -511,7 +511,7 @@ struct cdev *cdev_alloc(void)
struct cdev *p = kzalloc(sizeof(struct cdev), GFP_KERNEL);
if (p) {
INIT_LIST_HEAD(&p->list);
kobject_init_ng(&p->kobj, &ktype_cdev_dynamic);
kobject_init(&p->kobj, &ktype_cdev_dynamic);
}
return p;
}
@@ -528,7 +528,7 @@ void cdev_init(struct cdev *cdev, const struct file_operations *fops)
{
memset(cdev, 0, sizeof *cdev);
INIT_LIST_HEAD(&cdev->list);
kobject_init_ng(&cdev->kobj, &ktype_cdev_default);
kobject_init(&cdev->kobj, &ktype_cdev_default);
cdev->ops = fops;
}