aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/sl811.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-28 14:33:03 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 19:35:17 -0400
commite45282829a814a7f1e857427f218b21aef012e52 (patch)
tree761ed54b455cb75dcc7a04ebea208c417f5afd28 /drivers/usb/host/sl811.h
parent1d896ceae46d61412a575a4fc269f5eb4b0397d6 (diff)
USB: sl811: remove CONFIG_USB_DEBUG dependency
This removes the dependency of the driver on CONFIG_USB_DEBUG and moves it to us the dynamic debug subsystem instead. Bonus is the fact that we can now properly determine the exact hardware that is spitting out the messages. This lets debugging be enabled without having to rebuild the driver, an important thing for users that can not do it. Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/sl811.h')
-rw-r--r--drivers/usb/host/sl811.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/usb/host/sl811.h b/drivers/usb/host/sl811.h
index b6b8c1f233dd..7ac5c5ee4a3e 100644
--- a/drivers/usb/host/sl811.h
+++ b/drivers/usb/host/sl811.h
@@ -242,25 +242,8 @@ sl811_read_buf(struct sl811 *sl811, int addr, void *buf, size_t count)
242 242
243/*-------------------------------------------------------------------------*/ 243/*-------------------------------------------------------------------------*/
244 244
245#ifdef DEBUG
246#define DBG(stuff...) printk(KERN_DEBUG "sl811: " stuff)
247#else
248#define DBG(stuff...) do{}while(0)
249#endif
250
251#ifdef VERBOSE
252# define VDBG DBG
253#else
254# define VDBG(stuff...) do{}while(0)
255#endif
256
257#ifdef PACKET_TRACE 245#ifdef PACKET_TRACE
258# define PACKET VDBG 246# define PACKET pr_debug("sl811: "stuff)
259#else 247#else
260# define PACKET(stuff...) do{}while(0) 248# define PACKET(stuff...) do{}while(0)
261#endif 249#endif
262
263#define ERR(stuff...) printk(KERN_ERR "sl811: " stuff)
264#define WARNING(stuff...) printk(KERN_WARNING "sl811: " stuff)
265#define INFO(stuff...) printk(KERN_INFO "sl811: " stuff)
266