Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280885
b: refs/heads/master
c: b294b20
h: refs/heads/master
i:
  280883: 9ff21c8
v: v3
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 12, 2011
1 parent de3bda6 commit c08cdbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 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: dfbb7f4fba47153de4be9ed6092804ebfd16bfbb
refs/heads/master: b294b203361d2cf5f006a0233d2065ed0e0b5b76
15 changes: 0 additions & 15 deletions trunk/drivers/usb/renesas_usbhs/mod_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ struct usbhsg_uep {
struct usbhsg_gpriv {
struct usb_gadget gadget;
struct usbhs_mod mod;
struct list_head link;

struct usbhsg_uep *uep;
int uep_size;
Expand Down Expand Up @@ -115,16 +114,6 @@ struct usbhsg_recip_handle {
#define usbhsg_status_clr(gp, b) (gp->status &= ~b)
#define usbhsg_status_has(gp, b) (gp->status & b)

/* controller */
LIST_HEAD(the_controller_link);

#define usbhsg_for_each_controller(gpriv)\
list_for_each_entry(gpriv, &the_controller_link, link)
#define usbhsg_controller_register(gpriv)\
list_add_tail(&(gpriv)->link, &the_controller_link)
#define usbhsg_controller_unregister(gpriv)\
list_del_init(&(gpriv)->link)

/*
* queue push/pop
*/
Expand Down Expand Up @@ -1032,8 +1021,6 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
}
}

usbhsg_controller_register(gpriv);

ret = usb_add_gadget_udc(dev, &gpriv->gadget);
if (ret)
goto err_register;
Expand Down Expand Up @@ -1062,8 +1049,6 @@ void usbhs_mod_gadget_remove(struct usbhs_priv *priv)

device_unregister(&gpriv->gadget.dev);

usbhsg_controller_unregister(gpriv);

kfree(gpriv->uep);
kfree(gpriv);
}

0 comments on commit c08cdbb

Please sign in to comment.