Commit 3f8b6201 authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: pch_udc: fix sparse warnings

fix the following sparse warnings:

drivers/usb/gadget/pch_udc.c:1483:9: warning: context imbalance in 'complete_req' - unexpected unlock
drivers/usb/gadget/pch_udc.c:2408:28: warning: context imbalance in 'pch_udc_svc_control_out' - unexpected unlock
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 814cf212
...@@ -1440,6 +1440,8 @@ static void pch_vbus_gpio_free(struct pch_udc_dev *dev) ...@@ -1440,6 +1440,8 @@ static void pch_vbus_gpio_free(struct pch_udc_dev *dev)
*/ */
static void complete_req(struct pch_udc_ep *ep, struct pch_udc_request *req, static void complete_req(struct pch_udc_ep *ep, struct pch_udc_request *req,
int status) int status)
__releases(&dev->lock)
__acquires(&dev->lock)
{ {
struct pch_udc_dev *dev; struct pch_udc_dev *dev;
unsigned halted = ep->halted; unsigned halted = ep->halted;
...@@ -2381,6 +2383,8 @@ static void pch_udc_svc_control_in(struct pch_udc_dev *dev) ...@@ -2381,6 +2383,8 @@ static void pch_udc_svc_control_in(struct pch_udc_dev *dev)
* @dev: Reference to the device structure * @dev: Reference to the device structure
*/ */
static void pch_udc_svc_control_out(struct pch_udc_dev *dev) static void pch_udc_svc_control_out(struct pch_udc_dev *dev)
__releases(&dev->lock)
__acquires(&dev->lock)
{ {
u32 stat; u32 stat;
int setup_supported; int setup_supported;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment