]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: serial: ch341: make the reset_resume callback actually work.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2012 15:36:13 +0000 (08:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2012 15:36:13 +0000 (08:36 -0700)
I hooked up the wrong callback in my previous patch, this should fix it.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Johan Hovold <jhovold@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ch341.c

index 9481385393784390145e420a82b7c69842d516f6..cabd1b15ddce93029ecd5760a47152144b21eddb 100644 (file)
@@ -607,7 +607,7 @@ static struct usb_serial_driver ch341_device = {
        .tiocmset          = ch341_tiocmset,
        .read_int_callback = ch341_read_int_callback,
        .attach            = ch341_attach,
-       .resume            = ch341_reset_resume,
+       .reset_resume      = ch341_reset_resume,
 };
 
 static struct usb_serial_driver * const serial_drivers[] = {