diff options
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r-- | fs/char_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index b2dd5a036631..2c7a8b5b4598 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c | |||
@@ -511,7 +511,7 @@ struct cdev *cdev_alloc(void) | |||
511 | struct cdev *p = kzalloc(sizeof(struct cdev), GFP_KERNEL); | 511 | struct cdev *p = kzalloc(sizeof(struct cdev), GFP_KERNEL); |
512 | if (p) { | 512 | if (p) { |
513 | INIT_LIST_HEAD(&p->list); | 513 | INIT_LIST_HEAD(&p->list); |
514 | kobject_init_ng(&p->kobj, &ktype_cdev_dynamic); | 514 | kobject_init(&p->kobj, &ktype_cdev_dynamic); |
515 | } | 515 | } |
516 | return p; | 516 | return p; |
517 | } | 517 | } |
@@ -528,7 +528,7 @@ void cdev_init(struct cdev *cdev, const struct file_operations *fops) | |||
528 | { | 528 | { |
529 | memset(cdev, 0, sizeof *cdev); | 529 | memset(cdev, 0, sizeof *cdev); |
530 | INIT_LIST_HEAD(&cdev->list); | 530 | INIT_LIST_HEAD(&cdev->list); |
531 | kobject_init_ng(&cdev->kobj, &ktype_cdev_default); | 531 | kobject_init(&cdev->kobj, &ktype_cdev_default); |
532 | cdev->ops = fops; | 532 | cdev->ops = fops; |
533 | } | 533 | } |
534 | 534 | ||