diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-07 17:10:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-07 17:10:27 -0400 |
commit | 2bfd1c96a9fb9b547db9a2ad8428dc8de5526e92 (patch) | |
tree | 9a6f4aa00cffd0c879ab55e38807f9b0742eb812 /drivers/usb/serial | |
parent | 32078f915d1acab356080b144aa89fe3487f3979 (diff) |
USB: serial: ch341: remove reset_resume callback
This really just is the resume callback for the device, so use that,
especially as the usb-serial core just overrode this callback so it
wasn't being made anyway.
Cc: Johan Hovold <jhovold@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/ch341.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 4f0260a9013a..95b259747697 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -577,27 +577,20 @@ static int ch341_tiocmget(struct tty_struct *tty) | |||
577 | return result; | 577 | return result; |
578 | } | 578 | } |
579 | 579 | ||
580 | 580 | static int ch341_resume(struct usb_serial *serial) | |
581 | static int ch341_reset_resume(struct usb_interface *intf) | ||
582 | { | 581 | { |
583 | struct usb_device *dev = interface_to_usbdev(intf); | ||
584 | struct usb_serial *serial = NULL; | ||
585 | struct ch341_private *priv; | 582 | struct ch341_private *priv; |
586 | 583 | ||
587 | serial = usb_get_intfdata(intf); | ||
588 | priv = usb_get_serial_port_data(serial->port[0]); | 584 | priv = usb_get_serial_port_data(serial->port[0]); |
589 | 585 | ||
590 | /*reconfigure ch341 serial port after bus-reset*/ | 586 | /* reconfigure ch341 serial port after bus-reset */ |
591 | ch341_configure(dev, priv); | 587 | ch341_configure(serial->dev, priv); |
592 | |||
593 | usb_serial_resume(intf); | ||
594 | 588 | ||
595 | return 0; | 589 | return 0; |
596 | } | 590 | } |
597 | 591 | ||
598 | static struct usb_driver ch341_driver = { | 592 | static struct usb_driver ch341_driver = { |
599 | .name = "ch341", | 593 | .name = "ch341", |
600 | .reset_resume = ch341_reset_resume, | ||
601 | .id_table = id_table, | 594 | .id_table = id_table, |
602 | }; | 595 | }; |
603 | 596 | ||
@@ -619,6 +612,7 @@ static struct usb_serial_driver ch341_device = { | |||
619 | .tiocmset = ch341_tiocmset, | 612 | .tiocmset = ch341_tiocmset, |
620 | .read_int_callback = ch341_read_int_callback, | 613 | .read_int_callback = ch341_read_int_callback, |
621 | .attach = ch341_attach, | 614 | .attach = ch341_attach, |
615 | .resume = ch341_resume, | ||
622 | }; | 616 | }; |
623 | 617 | ||
624 | static struct usb_serial_driver * const serial_drivers[] = { | 618 | static struct usb_serial_driver * const serial_drivers[] = { |