提交 81522429 编写于 作者: L Larry Finger 提交者: Dominik Brodowski

pcmcia: ide-cs debugging bugfix

The code in module ide-cs does not conform to the current standard if
setting CONFIG_PCMCIA_DEBUG to "y", and loading the module with the
option "pc_debug=N". When that is fixed, then a warning results that
version is defined but not used. This patch fixes both situations.
Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
CC: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 feda4f2c
...@@ -63,11 +63,11 @@ MODULE_LICENSE("Dual MPL/GPL"); ...@@ -63,11 +63,11 @@ MODULE_LICENSE("Dual MPL/GPL");
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0) #define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
#ifdef PCMCIA_DEBUG #ifdef CONFIG_PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG); INT_MODULE_PARM(pc_debug, 0);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args) #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static char *version = /*static char *version =
"ide-cs.c 1.3 2002/10/26 05:45:31 (David Hinds)"; "ide-cs.c 1.3 2002/10/26 05:45:31 (David Hinds)";*/
#else #else
#define DEBUG(n, args...) #define DEBUG(n, args...)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册