Commit a8275fca authored by J.R. Mauro's avatar J.R. Mauro Committed by Greg Kroah-Hartman

Staging: comedi: fix build if CONFIG_PROC_FS is not set

Don't include procfs functions if CONFIG_PROC_FS is not set

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0bf8e27f
...@@ -85,6 +85,7 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len, ...@@ -85,6 +85,7 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
return l; return l;
} }
#ifdef CONFIG_PROC_FS
void comedi_proc_init(void) void comedi_proc_init(void)
{ {
struct proc_dir_entry *comedi_proc; struct proc_dir_entry *comedi_proc;
...@@ -98,3 +99,4 @@ void comedi_proc_cleanup(void) ...@@ -98,3 +99,4 @@ void comedi_proc_cleanup(void)
{ {
remove_proc_entry("comedi", 0); remove_proc_entry("comedi", 0);
} }
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment