#include <linux/tty.h>
#include <linux/module.h>
#include <linux/usb.h>
-
-#ifdef CONFIG_USB_SERIAL_DEBUG
- static int debug = 1;
-#else
- static int debug;
-#endif
-
#include "usb-serial.h"
/* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */
/* dbg("ezusb_writememory %x, %d", address, length); */
if (!serial->dev) {
- dbg("%s - no physical device present, failing.", __FUNCTION__);
+ err("%s - no physical device present, failing.", __FUNCTION__);
return -ENODEV;
}
int ezusb_set_reset (struct usb_serial *serial, unsigned char reset_bit)
{
- int response;
- dbg("%s - %d", __FUNCTION__, reset_bit);
+ int response;
+
+ /* dbg("%s - %d", __FUNCTION__, reset_bit); */
response = ezusb_writememory (serial, CPUCS_REG, &reset_bit, 1, 0xa0);
- if (response < 0) {
+ if (response < 0)
dev_err(&serial->dev->dev, "%s- %d failed\n", __FUNCTION__, reset_bit);
- }
return response;
}