diff options
Diffstat (limited to 'drivers/usb/host/isp116x.h')
-rw-r--r-- | drivers/usb/host/isp116x.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/isp116x.h b/drivers/usb/host/isp116x.h index 9a2c400e6090..dd34b7a33965 100644 --- a/drivers/usb/host/isp116x.h +++ b/drivers/usb/host/isp116x.h | |||
@@ -325,11 +325,7 @@ struct isp116x_ep { | |||
325 | 325 | ||
326 | /*-------------------------------------------------------------------------*/ | 326 | /*-------------------------------------------------------------------------*/ |
327 | 327 | ||
328 | #ifdef DEBUG | 328 | #define DBG(stuff...) pr_debug("116x: " stuff) |
329 | #define DBG(stuff...) printk(KERN_DEBUG "116x: " stuff) | ||
330 | #else | ||
331 | #define DBG(stuff...) do{}while(0) | ||
332 | #endif | ||
333 | 329 | ||
334 | #ifdef VERBOSE | 330 | #ifdef VERBOSE |
335 | # define VDBG DBG | 331 | # define VDBG DBG |
@@ -358,15 +354,8 @@ struct isp116x_ep { | |||
358 | #define isp116x_check_platform_delay(h) 0 | 354 | #define isp116x_check_platform_delay(h) 0 |
359 | #endif | 355 | #endif |
360 | 356 | ||
361 | #if defined(DEBUG) | ||
362 | #define IRQ_TEST() BUG_ON(!irqs_disabled()) | ||
363 | #else | ||
364 | #define IRQ_TEST() do{}while(0) | ||
365 | #endif | ||
366 | |||
367 | static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg) | 357 | static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg) |
368 | { | 358 | { |
369 | IRQ_TEST(); | ||
370 | writew(reg & 0xff, isp116x->addr_reg); | 359 | writew(reg & 0xff, isp116x->addr_reg); |
371 | isp116x_delay(isp116x, 300); | 360 | isp116x_delay(isp116x, 300); |
372 | } | 361 | } |