Commit e0d9f314 authored by Stefan Eletzhofer's avatar Stefan Eletzhofer Committed by Greg Kroah-Hartman

[PATCH] USB Gadget: fix g_serial debug module parm

g_serial.ko can't be load as module because "debug" is only
defined if G_SERIAL_DEBUG is defined, but "debug" is referenced
in MODULE_PARM().
parent 770c2983
...@@ -157,8 +157,12 @@ do { \ ...@@ -157,8 +157,12 @@ do { \
/* debug macro */ /* debug macro */
#if G_SERIAL_DEBUG #if G_SERIAL_DEBUG
static int debug = G_SERIAL_DEBUG; static int debug = G_SERIAL_DEBUG;
#else
static int debug = 0;
#endif
#if G_SERIAL_DEBUG
#define gs_debug(format, arg...) \ #define gs_debug(format, arg...) \
do { if (debug) printk(KERN_DEBUG format, ## arg); } while(0) do { if (debug) printk(KERN_DEBUG format, ## arg); } while(0)
......
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