OSDN Git Service

usb: phy: fix error handling in usb_get_phy xceiv-for-v3.6
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 2 Jul 2012 06:50:24 +0000 (12:20 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 2 Jul 2012 07:41:00 +0000 (10:41 +0300)
commitf8ecf829481b2cc7301a811da9d2df53ef174977
tree8863b65cf525eacab1dbaa32989f3f1372f21c2c
parentded017ee6c7b90f7356bd8488f8af1c10ba90490
usb: phy: fix error handling in usb_get_phy

spin_unlock_irqrestore() was not being called in the error path of
usb_get_phy. It's fixed here.

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/otg.c