From dc1da7f7bae9e71e56f365d7e987760c88c116bd Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 30 Apr 2010 15:59:18 -0700 Subject: [PATCH] Staging: comedi: fix up remaining coding style issue in proc.c Move the external variable into a .h file, where it belongs. Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_fops.h | 1 + drivers/staging/comedi/proc.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi_fops.h b/drivers/staging/comedi/comedi_fops.h index cb503c88c7f4..da4b4f5553f5 100644 --- a/drivers/staging/comedi/comedi_fops.h +++ b/drivers/staging/comedi/comedi_fops.h @@ -5,5 +5,6 @@ extern struct class *comedi_class; extern const struct file_operations comedi_fops; extern int comedi_autoconfig; +extern struct comedi_driver *comedi_drivers; #endif /* _COMEDI_FOPS_H */ diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 2b41faf37c60..c0035cb759aa 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c @@ -30,11 +30,10 @@ #define __NO_VERSION__ #include "comedidev.h" +#include "comedi_fops.h" #include /* #include */ -extern struct comedi_driver *comedi_drivers; - int comedi_read_procmem(char *buf, char **start, off_t offset, int len, int *eof, void *data) { -- 2.20.1