From: Johan Hovold Date: Thu, 10 Nov 2011 13:58:32 +0000 (+0100) Subject: USB: oti6858: forward USB errors to USB serial core X-Git-Tag: upstream/snapshot3+hdmi~8421^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5e450ee4f6d88711879592e30c0fb1cf14bf504;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: oti6858: forward USB errors to USB serial core Forward errors from usb_submit_urb in open. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 6770ad0..2161d1c 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c @@ -585,7 +585,7 @@ static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port) dev_err(&port->dev, "%s(): usb_submit_urb() failed" " with error %d\n", __func__, result); oti6858_close(port); - return -EPROTO; + return result; } /* setup termios */