aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r--drivers/usb/serial/option.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index f4465ccddc3..1aae9028cd0 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1220,18 +1220,6 @@ static const struct usb_device_id option_ids[] = {
1220}; 1220};
1221MODULE_DEVICE_TABLE(usb, option_ids); 1221MODULE_DEVICE_TABLE(usb, option_ids);
1222 1222
1223static struct usb_driver option_driver = {
1224 .name = "option",
1225 .probe = usb_serial_probe,
1226 .disconnect = usb_serial_disconnect,
1227#ifdef CONFIG_PM
1228 .suspend = usb_serial_suspend,
1229 .resume = usb_serial_resume,
1230 .supports_autosuspend = 1,
1231#endif
1232 .id_table = option_ids,
1233};
1234
1235/* The card has three separate interfaces, which the serial driver 1223/* The card has three separate interfaces, which the serial driver
1236 * recognizes separately, thus num_port=1. 1224 * recognizes separately, thus num_port=1.
1237 */ 1225 */
@@ -1300,7 +1288,7 @@ struct option_port_private {
1300 unsigned long tx_start_time[N_OUT_URB]; 1288 unsigned long tx_start_time[N_OUT_URB];
1301}; 1289};
1302 1290
1303module_usb_serial_driver(option_driver, serial_drivers); 1291module_usb_serial_driver(serial_drivers, option_ids);
1304 1292
1305static bool is_blacklisted(const u8 ifnum, enum option_blacklist_reason reason, 1293static bool is_blacklisted(const u8 ifnum, enum option_blacklist_reason reason,
1306 const struct option_blacklist_info *blacklist) 1294 const struct option_blacklist_info *blacklist)
@@ -1375,7 +1363,6 @@ static void option_instat_callback(struct urb *urb)
1375 struct usb_serial_port *port = urb->context; 1363 struct usb_serial_port *port = urb->context;
1376 struct option_port_private *portdata = usb_get_serial_port_data(port); 1364 struct option_port_private *portdata = usb_get_serial_port_data(port);
1377 1365
1378 dbg("%s", __func__);
1379 dbg("%s: urb %p port %p has data %p", __func__, urb, port, portdata); 1366 dbg("%s: urb %p port %p has data %p", __func__, urb, port, portdata);
1380 1367
1381 if (status == 0) { 1368 if (status == 0) {
@@ -1413,7 +1400,7 @@ static void option_instat_callback(struct urb *urb)
1413 req_pkt->bRequestType, req_pkt->bRequest); 1400 req_pkt->bRequestType, req_pkt->bRequest);
1414 } 1401 }
1415 } else 1402 } else
1416 err("%s: error %d", __func__, status); 1403 dev_err(&port->dev, "%s: error %d\n", __func__, status);
1417 1404
1418 /* Resubmit urb so we continue receiving IRQ data */ 1405 /* Resubmit urb so we continue receiving IRQ data */
1419 if (status != -ESHUTDOWN && status != -ENOENT) { 1406 if (status != -ESHUTDOWN && status != -ENOENT) {
@@ -1437,7 +1424,6 @@ static int option_send_setup(struct usb_serial_port *port)
1437 struct option_port_private *portdata; 1424 struct option_port_private *portdata;
1438 int ifNum = serial->interface->cur_altsetting->desc.bInterfaceNumber; 1425 int ifNum = serial->interface->cur_altsetting->desc.bInterfaceNumber;
1439 int val = 0; 1426 int val = 0;
1440 dbg("%s", __func__);
1441 1427
1442 if (is_blacklisted(ifNum, OPTION_BLACKLIST_SENDSETUP, 1428 if (is_blacklisted(ifNum, OPTION_BLACKLIST_SENDSETUP,
1443 (struct option_blacklist_info *) intfdata->private)) { 1429 (struct option_blacklist_info *) intfdata->private)) {