aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-11-24 20:28:45 -0500
committerFelipe Balbi <balbi@ti.com>2011-12-12 04:45:20 -0500
commitb294b203361d2cf5f006a0233d2065ed0e0b5b76 (patch)
tree060f3afbcad5f945365f6eb8eb89d4175620f2de /drivers/usb/renesas_usbhs
parentdfbb7f4fba47153de4be9ed6092804ebfd16bfbb (diff)
usb: renesas_usbhs: remove the_controller_link
current renesas_usbhs is using new style udc_start/stop from af1d7056a5c1e5eaaf807ddd1423101db84668d0 (usb: gadget: renesas: convert to new style). with this patch we can finally remove the global "the_controller_link" Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/mod_gadget.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index 1951de02957..cf3141c330a 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -45,7 +45,6 @@ struct usbhsg_uep {
45struct usbhsg_gpriv { 45struct usbhsg_gpriv {
46 struct usb_gadget gadget; 46 struct usb_gadget gadget;
47 struct usbhs_mod mod; 47 struct usbhs_mod mod;
48 struct list_head link;
49 48
50 struct usbhsg_uep *uep; 49 struct usbhsg_uep *uep;
51 int uep_size; 50 int uep_size;
@@ -115,16 +114,6 @@ struct usbhsg_recip_handle {
115#define usbhsg_status_clr(gp, b) (gp->status &= ~b) 114#define usbhsg_status_clr(gp, b) (gp->status &= ~b)
116#define usbhsg_status_has(gp, b) (gp->status & b) 115#define usbhsg_status_has(gp, b) (gp->status & b)
117 116
118/* controller */
119LIST_HEAD(the_controller_link);
120
121#define usbhsg_for_each_controller(gpriv)\
122 list_for_each_entry(gpriv, &the_controller_link, link)
123#define usbhsg_controller_register(gpriv)\
124 list_add_tail(&(gpriv)->link, &the_controller_link)
125#define usbhsg_controller_unregister(gpriv)\
126 list_del_init(&(gpriv)->link)
127
128/* 117/*
129 * queue push/pop 118 * queue push/pop
130 */ 119 */
@@ -1032,8 +1021,6 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
1032 } 1021 }
1033 } 1022 }
1034 1023
1035 usbhsg_controller_register(gpriv);
1036
1037 ret = usb_add_gadget_udc(dev, &gpriv->gadget); 1024 ret = usb_add_gadget_udc(dev, &gpriv->gadget);
1038 if (ret) 1025 if (ret)
1039 goto err_register; 1026 goto err_register;
@@ -1062,8 +1049,6 @@ void usbhs_mod_gadget_remove(struct usbhs_priv *priv)
1062 1049
1063 device_unregister(&gpriv->gadget.dev); 1050 device_unregister(&gpriv->gadget.dev);
1064 1051
1065 usbhsg_controller_unregister(gpriv);
1066
1067 kfree(gpriv->uep); 1052 kfree(gpriv->uep);
1068 kfree(gpriv); 1053 kfree(gpriv);
1069} 1054}