mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user