From: Alexey Dobriyan Date: Wed, 23 Sep 2009 22:57:33 +0000 (-0700) Subject: gru: use proc_create() X-Git-Tag: MMI-PSA29.97-13-9~26344 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8679af874b604db78d59d2a0a873a7f3d542842;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git gru: use proc_create() Signed-off-by: Alexey Dobriyan Cc: Jack Steiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/misc/sgi-gru/gruprocfs.c b/drivers/misc/sgi-gru/gruprocfs.c index 9cbf95bedce6..ccd4408a26c7 100644 --- a/drivers/misc/sgi-gru/gruprocfs.c +++ b/drivers/misc/sgi-gru/gruprocfs.c @@ -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; }