summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/proc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 13:26:37 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:13:10 -0400
commite784788ddb7000dbea8bd2986a3f83c4d77f96ff (patch)
treeb542d12760edac644ae39f0f3c6cef0f49882eff /drivers/staging/comedi/proc.c
parent96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (diff)
get rid of a bunch of open-coded create_proc_read_entry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/comedi/proc.c')
-rw-r--r--drivers/staging/comedi/proc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c
index 362c214bcc0b..f01e0cccac3b 100644
--- a/drivers/staging/comedi/proc.c
+++ b/drivers/staging/comedi/proc.c
@@ -80,11 +80,8 @@ static int comedi_read(char *buf, char **start, off_t offset, int len,
void comedi_proc_init(void)
{
- struct proc_dir_entry *comedi_proc;
-
- comedi_proc = create_proc_entry("comedi", S_IFREG | S_IRUGO, NULL);
- if (comedi_proc)
- comedi_proc->read_proc = comedi_read;
+ create_proc_read_entry("comedi", S_IFREG | S_IRUGO, NULL,
+ comedi_read, NULL);
}
void comedi_proc_cleanup(void)