Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325928
b: refs/heads/master
c: 162ca3c
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Felipe Balbi committed Sep 10, 2012
1 parent 5fd3e38 commit 0b8828b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d80c304bcacaf340efa29364ed0107f5c30378c8
refs/heads/master: 162ca3ca613e02e115ec9c5273f94bd22dad0af2
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static int at91_ep_enable(struct usb_ep *_ep,
const struct usb_endpoint_descriptor *desc)
{
struct at91_ep *ep = container_of(_ep, struct at91_ep, ep);
struct at91_udc *udc = ep->udc;
struct at91_udc *udc;
u16 maxpacket;
u32 tmp;
unsigned long flags;
Expand All @@ -484,6 +484,7 @@ static int at91_ep_enable(struct usb_ep *_ep,
return -EINVAL;
}

udc = ep->udc;
if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) {
DBG("bogus device state\n");
return -ESHUTDOWN;
Expand Down

0 comments on commit 0b8828b

Please sign in to comment.