Commit 68095f18 authored by Dulshani Gunawardhana's avatar Dulshani Gunawardhana Committed by Greg Kroah-Hartman

staging:go7007:Remove driver-specific debugging defines in favor of pr_debug

Remove driver-specific debugging defines in favor of pr_debug in
go7007-usb.c
Signed-off-by: default avatarDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb03b88c
...@@ -39,7 +39,6 @@ module_param(assume_endura, int, 0644); ...@@ -39,7 +39,6 @@ module_param(assume_endura, int, 0644);
MODULE_PARM_DESC(assume_endura, "when probing fails, " MODULE_PARM_DESC(assume_endura, "when probing fails, "
"hardware is a Pelco Endura"); "hardware is a Pelco Endura");
/* #define GO7007_USB_DEBUG */
/* #define GO7007_I2C_DEBUG */ /* for debugging the EZ-USB I2C adapter */ /* #define GO7007_I2C_DEBUG */ /* for debugging the EZ-USB I2C adapter */
#define HPI_STATUS_ADDR 0xFFF4 #define HPI_STATUS_ADDR 0xFFF4
...@@ -664,9 +663,7 @@ static int go7007_usb_interface_reset(struct go7007 *go) ...@@ -664,9 +663,7 @@ static int go7007_usb_interface_reset(struct go7007 *go)
if (usb->board->flags & GO7007_USB_EZUSB) { if (usb->board->flags & GO7007_USB_EZUSB) {
/* Reset buffer in EZ-USB */ /* Reset buffer in EZ-USB */
#ifdef GO7007_USB_DEBUG
pr_debug("resetting EZ-USB buffers\n"); pr_debug("resetting EZ-USB buffers\n");
#endif
if (go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0 || if (go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0 ||
go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0) go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0)
return -1; return -1;
...@@ -695,9 +692,7 @@ static int go7007_usb_ezusb_write_interrupt(struct go7007 *go, ...@@ -695,9 +692,7 @@ static int go7007_usb_ezusb_write_interrupt(struct go7007 *go,
u16 status_reg = 0; u16 status_reg = 0;
int timeout = 500; int timeout = 500;
#ifdef GO7007_USB_DEBUG
pr_debug("WriteInterrupt: %04x %04x\n", addr, data); pr_debug("WriteInterrupt: %04x %04x\n", addr, data);
#endif
for (i = 0; i < 100; ++i) { for (i = 0; i < 100; ++i) {
r = usb_control_msg(usb->usbdev, r = usb_control_msg(usb->usbdev,
...@@ -744,9 +739,7 @@ static int go7007_usb_onboard_write_interrupt(struct go7007 *go, ...@@ -744,9 +739,7 @@ static int go7007_usb_onboard_write_interrupt(struct go7007 *go,
int r; int r;
int timeout = 500; int timeout = 500;
#ifdef GO7007_USB_DEBUG
pr_debug("WriteInterrupt: %04x %04x\n", addr, data); pr_debug("WriteInterrupt: %04x %04x\n", addr, data);
#endif
go->usb_buf[0] = data & 0xff; go->usb_buf[0] = data & 0xff;
go->usb_buf[1] = data >> 8; go->usb_buf[1] = data >> 8;
...@@ -785,10 +778,8 @@ static void go7007_usb_readinterrupt_complete(struct urb *urb) ...@@ -785,10 +778,8 @@ static void go7007_usb_readinterrupt_complete(struct urb *urb)
go->interrupt_available = 1; go->interrupt_available = 1;
go->interrupt_data = __le16_to_cpu(regs[0]); go->interrupt_data = __le16_to_cpu(regs[0]);
go->interrupt_value = __le16_to_cpu(regs[1]); go->interrupt_value = __le16_to_cpu(regs[1]);
#ifdef GO7007_USB_DEBUG
pr_debug("ReadInterrupt: %04x %04x\n", pr_debug("ReadInterrupt: %04x %04x\n",
go->interrupt_value, go->interrupt_data); go->interrupt_value, go->interrupt_data);
#endif
} }
wake_up(&go->interrupt_waitq); wake_up(&go->interrupt_waitq);
...@@ -911,9 +902,7 @@ static int go7007_usb_send_firmware(struct go7007 *go, u8 *data, int len) ...@@ -911,9 +902,7 @@ static int go7007_usb_send_firmware(struct go7007 *go, u8 *data, int len)
int transferred, pipe; int transferred, pipe;
int timeout = 500; int timeout = 500;
#ifdef GO7007_USB_DEBUG
pr_debug("DownloadBuffer sending %d bytes\n", len); pr_debug("DownloadBuffer sending %d bytes\n", len);
#endif
if (usb->board->flags & GO7007_USB_EZUSB) if (usb->board->flags & GO7007_USB_EZUSB)
pipe = usb_sndbulkpipe(usb->usbdev, 2); pipe = usb_sndbulkpipe(usb->usbdev, 2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment