diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-05-05 06:53:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:43 -0400 |
commit | 28824b18ac4705e876a282a15ea0de8fc957551f (patch) | |
tree | 706bf405e7019792d43d9580e2eb191dcdd4e8be /drivers/usb/gadget/epautoconf.c | |
parent | 8120a8aadb2059e29982561658bc6675126f8105 (diff) |
USB: gadget: __init and __exit tags removed
__init, __initdata and __exit tags have have been removed from
various files to make it possible for gadgets that do not use
the __init/__exit tags to use those.
Files in question are related to:
* the core composite framework,
* the mass storage function (fixing a section mismatch) and
* ethernet driver (ACM, ECM, RNDIS).
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/epautoconf.c')
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 3568de210f79..8a832488ccdd 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c | |||
@@ -34,12 +34,12 @@ | |||
34 | 34 | ||
35 | 35 | ||
36 | /* we must assign addresses for configurable endpoints (like net2280) */ | 36 | /* we must assign addresses for configurable endpoints (like net2280) */ |
37 | static __initdata unsigned epnum; | 37 | static unsigned epnum; |
38 | 38 | ||
39 | // #define MANY_ENDPOINTS | 39 | // #define MANY_ENDPOINTS |
40 | #ifdef MANY_ENDPOINTS | 40 | #ifdef MANY_ENDPOINTS |
41 | /* more than 15 configurable endpoints */ | 41 | /* more than 15 configurable endpoints */ |
42 | static __initdata unsigned in_epnum; | 42 | static unsigned in_epnum; |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | 45 | ||
@@ -59,7 +59,7 @@ static __initdata unsigned in_epnum; | |||
59 | * NOTE: each endpoint is unidirectional, as specified by its USB | 59 | * NOTE: each endpoint is unidirectional, as specified by its USB |
60 | * descriptor; and isn't specific to a configuration or altsetting. | 60 | * descriptor; and isn't specific to a configuration or altsetting. |
61 | */ | 61 | */ |
62 | static int __init | 62 | static int |
63 | ep_matches ( | 63 | ep_matches ( |
64 | struct usb_gadget *gadget, | 64 | struct usb_gadget *gadget, |
65 | struct usb_ep *ep, | 65 | struct usb_ep *ep, |
@@ -187,7 +187,7 @@ ep_matches ( | |||
187 | return 1; | 187 | return 1; |
188 | } | 188 | } |
189 | 189 | ||
190 | static struct usb_ep * __init | 190 | static struct usb_ep * |
191 | find_ep (struct usb_gadget *gadget, const char *name) | 191 | find_ep (struct usb_gadget *gadget, const char *name) |
192 | { | 192 | { |
193 | struct usb_ep *ep; | 193 | struct usb_ep *ep; |
@@ -229,7 +229,7 @@ find_ep (struct usb_gadget *gadget, const char *name) | |||
229 | * | 229 | * |
230 | * On failure, this returns a null endpoint descriptor. | 230 | * On failure, this returns a null endpoint descriptor. |
231 | */ | 231 | */ |
232 | struct usb_ep * __init usb_ep_autoconfig ( | 232 | struct usb_ep *usb_ep_autoconfig ( |
233 | struct usb_gadget *gadget, | 233 | struct usb_gadget *gadget, |
234 | struct usb_endpoint_descriptor *desc | 234 | struct usb_endpoint_descriptor *desc |
235 | ) | 235 | ) |
@@ -304,7 +304,7 @@ struct usb_ep * __init usb_ep_autoconfig ( | |||
304 | * state such as ep->driver_data and the record of assigned endpoints | 304 | * state such as ep->driver_data and the record of assigned endpoints |
305 | * used by usb_ep_autoconfig(). | 305 | * used by usb_ep_autoconfig(). |
306 | */ | 306 | */ |
307 | void __init usb_ep_autoconfig_reset (struct usb_gadget *gadget) | 307 | void usb_ep_autoconfig_reset (struct usb_gadget *gadget) |
308 | { | 308 | { |
309 | struct usb_ep *ep; | 309 | struct usb_ep *ep; |
310 | 310 | ||