aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-19 18:41:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 14:46:19 -0500
commitbee53637e5836a7cc642ca036e44bd77caf7bc35 (patch)
tree40885e3adaac7699ca8b1353afe3c45e2876a81c
parent1ce0fd15be2888569d4cea25fbd548f5f91c23a1 (diff)
USB: c67x00: remove CONFIG_USB_DEBUG dependancy
This removes the usage of CONFIG_USB_DEBUG in the c67x00 driver. There was only one place, where the TD was dumped to the kernel log, and that was using the dynamic debug infrastructure already, with the exception of the call to print_hex_dump(). So move everything to the dynamic debug infrastructure, including one odd printk(KERN_DEBUG...) line that looks like it was forgotten about a long time ago. Acked-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/c67x00/Makefile2
-rw-r--r--drivers/usb/c67x00/c67x00-sched.c15
2 files changed, 3 insertions, 14 deletions
diff --git a/drivers/usb/c67x00/Makefile b/drivers/usb/c67x00/Makefile
index b1218683c8ec..da5f314a5de0 100644
--- a/drivers/usb/c67x00/Makefile
+++ b/drivers/usb/c67x00/Makefile
@@ -2,8 +2,6 @@
2# Makefile for Cypress C67X00 USB Controller 2# Makefile for Cypress C67X00 USB Controller
3# 3#
4 4
5ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
6
7obj-$(CONFIG_USB_C67X00_HCD) += c67x00.o 5obj-$(CONFIG_USB_C67X00_HCD) += c67x00.o
8 6
9c67x00-y := c67x00-drv.o c67x00-ll-hpi.o c67x00-hcd.o c67x00-sched.o 7c67x00-y := c67x00-drv.o c67x00-ll-hpi.o c67x00-hcd.o c67x00-sched.o
diff --git a/drivers/usb/c67x00/c67x00-sched.c b/drivers/usb/c67x00/c67x00-sched.c
index 892cc96466eb..c379d202f928 100644
--- a/drivers/usb/c67x00/c67x00-sched.c
+++ b/drivers/usb/c67x00/c67x00-sched.c
@@ -144,8 +144,6 @@ struct c67x00_urb_priv {
144 144
145/* -------------------------------------------------------------------------- */ 145/* -------------------------------------------------------------------------- */
146 146
147#ifdef DEBUG
148
149/** 147/**
150 * dbg_td - Dump the contents of the TD 148 * dbg_td - Dump the contents of the TD
151 */ 149 */
@@ -166,16 +164,8 @@ static void dbg_td(struct c67x00_hcd *c67x00, struct c67x00_td *td, char *msg)
166 dev_dbg(dev, "retry_cnt: 0x%02x\n", td->retry_cnt); 164 dev_dbg(dev, "retry_cnt: 0x%02x\n", td->retry_cnt);
167 dev_dbg(dev, "residue: 0x%02x\n", td->residue); 165 dev_dbg(dev, "residue: 0x%02x\n", td->residue);
168 dev_dbg(dev, "next_td_addr: 0x%04x\n", td_next_td_addr(td)); 166 dev_dbg(dev, "next_td_addr: 0x%04x\n", td_next_td_addr(td));
169 dev_dbg(dev, "data:"); 167 dev_dbg(dev, "data: %*ph\n", td_length(td), td->data);
170 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1,
171 td->data, td_length(td), 1);
172} 168}
173#else /* DEBUG */
174
175static inline void
176dbg_td(struct c67x00_hcd *c67x00, struct c67x00_td *td, char *msg) { }
177
178#endif /* DEBUG */
179 169
180/* -------------------------------------------------------------------------- */ 170/* -------------------------------------------------------------------------- */
181/* Helper functions */ 171/* Helper functions */
@@ -780,7 +770,8 @@ static int c67x00_add_iso_urb(struct c67x00_hcd *c67x00, struct urb *urb)
780 ret = c67x00_create_td(c67x00, urb, td_buf, len, pid, 0, 770 ret = c67x00_create_td(c67x00, urb, td_buf, len, pid, 0,
781 urbp->cnt); 771 urbp->cnt);
782 if (ret) { 772 if (ret) {
783 printk(KERN_DEBUG "create failed: %d\n", ret); 773 dev_dbg(c67x00_hcd_dev(c67x00), "create failed: %d\n",
774 ret);
784 urb->iso_frame_desc[urbp->cnt].actual_length = 0; 775 urb->iso_frame_desc[urbp->cnt].actual_length = 0;
785 urb->iso_frame_desc[urbp->cnt].status = ret; 776 urb->iso_frame_desc[urbp->cnt].status = ret;
786 if (urbp->cnt + 1 == urb->number_of_packets) 777 if (urbp->cnt + 1 == urb->number_of_packets)