diff options
author | J.R. Mauro <jrm8005@gmail.com> | 2008-11-14 20:01:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 16:52:27 -0500 |
commit | a8275fcaa7ca1f720f0c1b1c4c373964ffc9f72d (patch) | |
tree | 095d187f571cf53eb6defff25c8efca3f21837af /drivers | |
parent | 0bf8e27f7a7da413c1cf3dad4afdcf1b17418285 (diff) |
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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
85 | return l; | 85 | return l; |
86 | } | 86 | } |
87 | 87 | ||
88 | #ifdef CONFIG_PROC_FS | ||
88 | void comedi_proc_init(void) | 89 | void comedi_proc_init(void) |
89 | { | 90 | { |
90 | struct proc_dir_entry *comedi_proc; | 91 | struct proc_dir_entry *comedi_proc; |
@@ -98,3 +99,4 @@ void comedi_proc_cleanup(void) | |||
98 | { | 99 | { |
99 | remove_proc_entry("comedi", 0); | 100 | remove_proc_entry("comedi", 0); |
100 | } | 101 | } |
102 | #endif | ||