mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
usb: musb: fix debug global variable name
In order to avoid namespace conflicts, add a prefix to our kernel-wise symbol. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
eef767b761
commit
b60c72abdb
2 changed files with 5 additions and 5 deletions
|
@ -114,8 +114,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
unsigned debug;
|
unsigned musb_debug;
|
||||||
module_param(debug, uint, S_IRUGO | S_IWUSR);
|
module_param(musb_debug, uint, S_IRUGO | S_IWUSR);
|
||||||
MODULE_PARM_DESC(debug, "Debug message level. Default = 0");
|
MODULE_PARM_DESC(debug, "Debug message level. Default = 0");
|
||||||
|
|
||||||
#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
|
#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
|
||||||
|
@ -2248,7 +2248,7 @@ static int __init musb_init(void)
|
||||||
"host"
|
"host"
|
||||||
#endif
|
#endif
|
||||||
", debug=%d\n",
|
", debug=%d\n",
|
||||||
musb_driver_name, debug);
|
musb_driver_name, musb_debug);
|
||||||
return platform_driver_probe(&musb_driver, musb_probe);
|
return platform_driver_probe(&musb_driver, musb_probe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,11 +48,11 @@
|
||||||
__func__, __LINE__ , ## args); \
|
__func__, __LINE__ , ## args); \
|
||||||
} } while (0)
|
} } while (0)
|
||||||
|
|
||||||
extern unsigned debug;
|
extern unsigned musb_debug;
|
||||||
|
|
||||||
static inline int _dbg_level(unsigned l)
|
static inline int _dbg_level(unsigned l)
|
||||||
{
|
{
|
||||||
return debug >= l;
|
return musb_debug >= l;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args)
|
#define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue