aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/atmel_usba_udc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.h')
-rw-r--r--drivers/usb/gadget/atmel_usba_udc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.h b/drivers/usb/gadget/atmel_usba_udc.h
index a68304e31a68..08bf6f9aaf7e 100644
--- a/drivers/usb/gadget/atmel_usba_udc.h
+++ b/drivers/usb/gadget/atmel_usba_udc.h
@@ -216,7 +216,6 @@
216#define FIFO_IOMEM_ID 0 216#define FIFO_IOMEM_ID 0
217#define CTRL_IOMEM_ID 1 217#define CTRL_IOMEM_ID 1
218 218
219#ifdef DEBUG
220#define DBG_ERR 0x0001 /* report all error returns */ 219#define DBG_ERR 0x0001 /* report all error returns */
221#define DBG_HW 0x0002 /* debug hardware initialization */ 220#define DBG_HW 0x0002 /* debug hardware initialization */
222#define DBG_GADGET 0x0004 /* calls to/from gadget driver */ 221#define DBG_GADGET 0x0004 /* calls to/from gadget driver */
@@ -230,14 +229,12 @@
230#define DBG_NONE 0x0000 229#define DBG_NONE 0x0000
231 230
232#define DEBUG_LEVEL (DBG_ERR) 231#define DEBUG_LEVEL (DBG_ERR)
232
233#define DBG(level, fmt, ...) \ 233#define DBG(level, fmt, ...) \
234 do { \ 234 do { \
235 if ((level) & DEBUG_LEVEL) \ 235 if ((level) & DEBUG_LEVEL) \
236 printk(KERN_DEBUG "udc: " fmt, ## __VA_ARGS__); \ 236 pr_debug("udc: " fmt, ## __VA_ARGS__); \
237 } while (0) 237 } while (0)
238#else
239#define DBG(level, fmt...)
240#endif
241 238
242enum usba_ctrl_state { 239enum usba_ctrl_state {
243 WAIT_FOR_SETUP, 240 WAIT_FOR_SETUP,