diff options
Diffstat (limited to 'drivers/usb/musb/musb_debug.h')
| -rw-r--r-- | drivers/usb/musb/musb_debug.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h index 9fc1db44c72..27ba8f79946 100644 --- a/drivers/usb/musb/musb_debug.h +++ b/drivers/usb/musb/musb_debug.h @@ -42,21 +42,17 @@ #define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args) #define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args) -#define xprintk(level, facility, format, args...) do { \ - if (_dbg_level(level)) { \ - printk(facility "%s %d: " format , \ - __func__, __LINE__ , ## args); \ - } } while (0) - -extern unsigned musb_debug; - -static inline int _dbg_level(unsigned l) +#ifdef CONFIG_DEBUG_FS +int musb_init_debugfs(struct musb *musb); +void musb_exit_debugfs(struct musb *musb); +#else +static inline int musb_init_debugfs(struct musb *musb) { - return musb_debug >= l; + return 0; } - -#define DBG(level, fmt, args...) xprintk(level, KERN_DEBUG, fmt, ## args) - -extern const char *otg_state_string(struct musb *); +static inline void musb_exit_debugfs(struct musb *musb) +{ +} +#endif #endif /* __MUSB_LINUX_DEBUG_H__ */ |
