mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
0bf8e27f7a
commit
a8275fcaa7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue