mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
gru: use proc_create()
Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Jack Steiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
858f09930b
commit
f8679af874
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue