Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75820
b: refs/heads/master
c: a5815dd
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent ac0f72a commit ee808c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78be3d2f574bf8a9886550ad07b8124b194badb8
refs/heads/master: a5815ddf26aa8208d4ad79b4fba5e6bf7d5ba688
6 changes: 2 additions & 4 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,8 @@ struct cdev *cdev_alloc(void)
{
struct cdev *p = kzalloc(sizeof(struct cdev), GFP_KERNEL);
if (p) {
p->kobj.ktype = &ktype_cdev_dynamic;
INIT_LIST_HEAD(&p->list);
kobject_init(&p->kobj);
kobject_init_ng(&p->kobj, &ktype_cdev_dynamic);
}
return p;
}
Expand All @@ -529,8 +528,7 @@ void cdev_init(struct cdev *cdev, const struct file_operations *fops)
{
memset(cdev, 0, sizeof *cdev);
INIT_LIST_HEAD(&cdev->list);
cdev->kobj.ktype = &ktype_cdev_default;
kobject_init(&cdev->kobj);
kobject_init_ng(&cdev->kobj, &ktype_cdev_default);
cdev->ops = fops;
}

Expand Down

0 comments on commit ee808c6

Please sign in to comment.