From: J.R. Mauro Date: Sat, 15 Nov 2008 01:01:14 +0000 (-0500) Subject: Staging: comedi: fix build if CONFIG_PROC_FS is not set X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8275fcaa7ca1f720f0c1b1c4c373964ffc9f72d;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 7db12ac0d280..5a2b72d87572 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c @@ -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; @@ -98,3 +99,4 @@ void comedi_proc_cleanup(void) { remove_proc_entry("comedi", 0); } +#endif