Skip to content

Commit

Permalink
Staging: comedi: fix build if CONFIG_PROC_FS is not set
Browse files Browse the repository at this point in the history
Don't include procfs functions if CONFIG_PROC_FS is not set

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
J.R. Mauro authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 0bf8e27 commit a8275fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/comedi/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
return l;
}

#ifdef CONFIG_PROC_FS
void comedi_proc_init(void)
{
struct proc_dir_entry *comedi_proc;
Expand All @@ -98,3 +99,4 @@ void comedi_proc_cleanup(void)
{
remove_proc_entry("comedi", 0);
}
#endif

0 comments on commit a8275fc

Please sign in to comment.