Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8679af8 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

gru: use proc_create()



Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Cc: Jack Steiner <steiner@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 858f0993
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -340,10 +340,9 @@ static struct proc_dir_entry *proc_gru __read_mostly;

static int create_proc_file(struct proc_entry *p)
{
	p->entry = create_proc_entry(p->name, p->mode, proc_gru);
	p->entry = proc_create(p->name, p->mode, proc_gru, p->fops);
	if (!p->entry)
		return -1;
	p->entry->proc_fops = p->fops;
	return 0;
}