projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bf8e27
)
Staging: comedi: fix build if CONFIG_PROC_FS is not set
author
J.R. Mauro
<jrm8005@gmail.com>
Sat, 15 Nov 2008 01:01:14 +0000
(20:01 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 6 Jan 2009 21:52:27 +0000
(13:52 -0800)
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>
drivers/staging/comedi/proc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/comedi/proc.c
b/drivers/staging/comedi/proc.c
index 7db12ac0d280a7292ce5d3d6a72cd3ddf136d8d7..5a2b72d87572dea0de8178c73abcc8f868f6a520 100644
(file)
--- 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