From: Greg Kroah-Hartman Date: Wed, 16 May 2012 15:39:56 +0000 (-0700) Subject: Revert "USB: serial: sierra: put reset_resume callback back." X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b623f871d7c993fac8ad7aaaa8f5f3cdb8ed480;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "USB: serial: sierra: put reset_resume callback back." This reverts commit 6971113e1000d24f7d4975eaa6f8cf2739a4565b. As Alan pointed out, this really isn't needed as it doesn't handle this properly. Ideally this should be handled by the usb-serial core one day. So revert it. Reported-by: Alan Stern Cc: Rusty Russell Cc: Johan Hovold Cc: Anton Samokhvalov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 90b985df681b..ba54a0a8235c 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -1039,16 +1039,9 @@ static int sierra_resume(struct usb_serial *serial) return ec ? -EIO : 0; } -static int sierra_reset_resume(struct usb_serial *serial) -{ - dev_err(&serial->dev->dev, "%s\n", __func__); - return usb_serial_resume(serial->interface); -} - #else #define sierra_suspend NULL #define sierra_resume NULL -#define sierra_reset_resume NULL #endif static struct usb_serial_driver sierra_device = { @@ -1072,7 +1065,6 @@ static struct usb_serial_driver sierra_device = { .release = sierra_release, .suspend = sierra_suspend, .resume = sierra_resume, - .reset_resume = sierra_reset_resume, .read_int_callback = sierra_instat_callback, };