Commit d2601699 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: remove comedi_debug module parameter

Remove this module parameter and use the CONFIG_COMEDI_DEBUG option to
enable normal kernel debugging with -DDEBUG flag.

Remove the #undef DEBUG from all the comedi source files so they will
honour the -DDEBUG flag.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9a431f2
ccflags-$(CONFIG_COMEDI_DEBUG) := -DDEBUG
comedi-y := comedi_fops.o range.o drivers.o \ comedi-y := comedi_fops.o range.o drivers.o \
comedi_buf.o comedi_buf.o
comedi-$(CONFIG_COMEDI_PCI_DRIVERS) += comedi_pci.o comedi-$(CONFIG_COMEDI_PCI_DRIVERS) += comedi_pci.o
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
GNU General Public License for more details. GNU General Public License for more details.
*/ */
#undef DEBUG
#include "comedi_compat32.h" #include "comedi_compat32.h"
#include <linux/module.h> #include <linux/module.h>
...@@ -47,15 +45,6 @@ ...@@ -47,15 +45,6 @@
#define COMEDI_NUM_SUBDEVICE_MINORS \ #define COMEDI_NUM_SUBDEVICE_MINORS \
(COMEDI_NUM_MINORS - COMEDI_NUM_BOARD_MINORS) (COMEDI_NUM_MINORS - COMEDI_NUM_BOARD_MINORS)
#ifdef CONFIG_COMEDI_DEBUG
int comedi_debug;
EXPORT_SYMBOL_GPL(comedi_debug);
module_param(comedi_debug, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(comedi_debug,
"enable comedi core and driver debugging if non-zero (default 0)"
);
#endif
static int comedi_num_legacy_minors; static int comedi_num_legacy_minors;
module_param(comedi_num_legacy_minors, int, S_IRUGO); module_param(comedi_num_legacy_minors, int, S_IRUGO);
MODULE_PARM_DESC(comedi_num_legacy_minors, MODULE_PARM_DESC(comedi_num_legacy_minors,
......
...@@ -27,10 +27,7 @@ ...@@ -27,10 +27,7 @@
#include "comedi.h" #include "comedi.h"
#define DPRINTK(format, args...) do { \ #define DPRINTK(format, args...) pr_debug("comedi: " format, ## args);
if (comedi_debug) \
pr_debug("comedi: " format, ## args); \
} while (0)
#define COMEDI_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c)) #define COMEDI_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c))
#define COMEDI_VERSION_CODE COMEDI_VERSION(COMEDI_MAJORVERSION, \ #define COMEDI_VERSION_CODE COMEDI_VERSION(COMEDI_MAJORVERSION, \
...@@ -216,12 +213,6 @@ static inline const void *comedi_board(const struct comedi_device *dev) ...@@ -216,12 +213,6 @@ static inline const void *comedi_board(const struct comedi_device *dev)
return dev->board_ptr; return dev->board_ptr;
} }
#ifdef CONFIG_COMEDI_DEBUG
extern int comedi_debug;
#else
static const int comedi_debug;
#endif
/* /*
* function prototypes * function prototypes
*/ */
......
# Makefile for individual comedi drivers # Makefile for individual comedi drivers
# #
ccflags-$(CONFIG_COMEDI_DEBUG) := -DDEBUG
# Comedi "helper" modules # Comedi "helper" modules
......
...@@ -47,8 +47,6 @@ See the notes in the ni_atmio.o driver. ...@@ -47,8 +47,6 @@ See the notes in the ni_atmio.o driver.
#include <pcmcia/cistpl.h> #include <pcmcia/cistpl.h>
#include <pcmcia/ds.h> #include <pcmcia/ds.h>
#undef DEBUG
#define ATMIO 1 #define ATMIO 1
#undef PCIMIO #undef PCIMIO
......
ccflags-$(CONFIG_COMEDI_DEBUG) := -DDEBUG
obj-$(CONFIG_COMEDI_KCOMEDILIB) += kcomedilib.o obj-$(CONFIG_COMEDI_KCOMEDILIB) += kcomedilib.o
kcomedilib-objs := kcomedilib_main.o kcomedilib-objs := kcomedilib_main.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment