diff options
-rw-r--r-- | drivers/usb/gadget/Makefile | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/acm_ms.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/audio.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/cdc2.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/dbgp.c | 3 | ||||
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 6 | ||||
-rw-r--r-- | drivers/usb/gadget/ether.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 13 | ||||
-rw-r--r-- | drivers/usb/gadget/g_ffs.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/hid.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/mass_storage.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/multi.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/ncm.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/nokia.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/printer.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/serial.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/tcm_usb_gadget.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/webcam.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/zero.c | 1 |
21 files changed, 9 insertions, 35 deletions
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile index 9515ed0163b7..23d705f194ac 100644 --- a/drivers/usb/gadget/Makefile +++ b/drivers/usb/gadget/Makefile | |||
@@ -5,7 +5,7 @@ ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG | |||
5 | 5 | ||
6 | obj-$(CONFIG_USB_GADGET) += udc-core.o | 6 | obj-$(CONFIG_USB_GADGET) += udc-core.o |
7 | obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o | 7 | obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o |
8 | libcomposite-y := usbstring.o config.o | 8 | libcomposite-y := usbstring.o config.o epautoconf.o |
9 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o | 9 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o |
10 | obj-$(CONFIG_USB_NET2272) += net2272.o | 10 | obj-$(CONFIG_USB_NET2272) += net2272.o |
11 | obj-$(CONFIG_USB_NET2280) += net2280.o | 11 | obj-$(CONFIG_USB_NET2280) += net2280.o |
diff --git a/drivers/usb/gadget/acm_ms.c b/drivers/usb/gadget/acm_ms.c index 3078d797f634..5db661d8590b 100644 --- a/drivers/usb/gadget/acm_ms.c +++ b/drivers/usb/gadget/acm_ms.c | |||
@@ -42,7 +42,6 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "composite.c" | 44 | #include "composite.c" |
45 | #include "epautoconf.c" | ||
46 | #include "u_serial.c" | 45 | #include "u_serial.c" |
47 | #include "f_acm.c" | 46 | #include "f_acm.c" |
48 | #include "f_mass_storage.c" | 47 | #include "f_mass_storage.c" |
diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c index 9e85df22e796..689d1422a1c0 100644 --- a/drivers/usb/gadget/audio.c +++ b/drivers/usb/gadget/audio.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/utsname.h> | 15 | #include <linux/utsname.h> |
16 | 16 | ||
17 | #include "gadget_chips.h" | ||
17 | #define DRIVER_DESC "Linux USB Audio Gadget" | 18 | #define DRIVER_DESC "Linux USB Audio Gadget" |
18 | #define DRIVER_VERSION "Feb 2, 2012" | 19 | #define DRIVER_VERSION "Feb 2, 2012" |
19 | 20 | ||
@@ -27,7 +28,6 @@ | |||
27 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 28 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
28 | */ | 29 | */ |
29 | #include "composite.c" | 30 | #include "composite.c" |
30 | #include "epautoconf.c" | ||
31 | 31 | ||
32 | /* string IDs are assigned dynamically */ | 32 | /* string IDs are assigned dynamically */ |
33 | 33 | ||
diff --git a/drivers/usb/gadget/cdc2.c b/drivers/usb/gadget/cdc2.c index d06d0791c70e..8e386cf377a5 100644 --- a/drivers/usb/gadget/cdc2.c +++ b/drivers/usb/gadget/cdc2.c | |||
@@ -44,7 +44,6 @@ | |||
44 | */ | 44 | */ |
45 | 45 | ||
46 | #include "composite.c" | 46 | #include "composite.c" |
47 | #include "epautoconf.c" | ||
48 | #include "u_serial.c" | 47 | #include "u_serial.c" |
49 | #include "f_acm.c" | 48 | #include "f_acm.c" |
50 | #include "f_ecm.c" | 49 | #include "f_ecm.c" |
diff --git a/drivers/usb/gadget/dbgp.c b/drivers/usb/gadget/dbgp.c index cc1746597aab..87d165028162 100644 --- a/drivers/usb/gadget/dbgp.c +++ b/drivers/usb/gadget/dbgp.c | |||
@@ -13,9 +13,6 @@ | |||
13 | #include <linux/usb/ch9.h> | 13 | #include <linux/usb/ch9.h> |
14 | #include <linux/usb/gadget.h> | 14 | #include <linux/usb/gadget.h> |
15 | 15 | ||
16 | /* See comments in "zero.c" */ | ||
17 | #include "epautoconf.c" | ||
18 | |||
19 | #ifdef CONFIG_USB_G_DBGP_SERIAL | 16 | #ifdef CONFIG_USB_G_DBGP_SERIAL |
20 | #include "u_serial.c" | 17 | #include "u_serial.c" |
21 | #endif | 18 | #endif |
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index d5a905dbed00..a777f7bd11b4 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/module.h> | ||
13 | #include <linux/init.h> | 14 | #include <linux/init.h> |
14 | #include <linux/types.h> | 15 | #include <linux/types.h> |
15 | #include <linux/device.h> | 16 | #include <linux/device.h> |
@@ -315,6 +316,7 @@ found_ep: | |||
315 | ep->comp_desc = NULL; | 316 | ep->comp_desc = NULL; |
316 | return ep; | 317 | return ep; |
317 | } | 318 | } |
319 | EXPORT_SYMBOL_GPL(usb_ep_autoconfig_ss); | ||
318 | 320 | ||
319 | /** | 321 | /** |
320 | * usb_ep_autoconfig() - choose an endpoint matching the | 322 | * usb_ep_autoconfig() - choose an endpoint matching the |
@@ -354,7 +356,7 @@ struct usb_ep *usb_ep_autoconfig( | |||
354 | { | 356 | { |
355 | return usb_ep_autoconfig_ss(gadget, desc, NULL); | 357 | return usb_ep_autoconfig_ss(gadget, desc, NULL); |
356 | } | 358 | } |
357 | 359 | EXPORT_SYMBOL_GPL(usb_ep_autoconfig); | |
358 | 360 | ||
359 | /** | 361 | /** |
360 | * usb_ep_autoconfig_reset - reset endpoint autoconfig state | 362 | * usb_ep_autoconfig_reset - reset endpoint autoconfig state |
@@ -375,4 +377,4 @@ void usb_ep_autoconfig_reset (struct usb_gadget *gadget) | |||
375 | gadget->in_epnum = 0; | 377 | gadget->in_epnum = 0; |
376 | gadget->out_epnum = 0; | 378 | gadget->out_epnum = 0; |
377 | } | 379 | } |
378 | 380 | EXPORT_SYMBOL_GPL(usb_ep_autoconfig_reset); | |
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 557021e267ee..39eb718f796a 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -103,7 +103,6 @@ static inline bool has_rndis(void) | |||
103 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 103 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
104 | */ | 104 | */ |
105 | #include "composite.c" | 105 | #include "composite.c" |
106 | #include "epautoconf.c" | ||
107 | 106 | ||
108 | #include "f_ecm.c" | 107 | #include "f_ecm.c" |
109 | #include "f_subset.c" | 108 | #include "f_subset.c" |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 77cf1083099f..ce362f7e39d3 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -256,19 +256,6 @@ | |||
256 | 256 | ||
257 | #include "gadget_chips.h" | 257 | #include "gadget_chips.h" |
258 | 258 | ||
259 | |||
260 | |||
261 | /* | ||
262 | * Kbuild is not very cooperative with respect to linking separately | ||
263 | * compiled library objects into one module. So for now we won't use | ||
264 | * separate compilation ... ensuring init/exit sections work to shrink | ||
265 | * the runtime footprint, and giving us at least some parts of what | ||
266 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | ||
267 | */ | ||
268 | #include "epautoconf.c" | ||
269 | |||
270 | /*-------------------------------------------------------------------------*/ | ||
271 | |||
272 | #define DRIVER_DESC "File-backed Storage Gadget" | 259 | #define DRIVER_DESC "File-backed Storage Gadget" |
273 | #define DRIVER_NAME "g_file_storage" | 260 | #define DRIVER_NAME "g_file_storage" |
274 | #define DRIVER_VERSION "1 September 2010" | 261 | #define DRIVER_VERSION "1 September 2010" |
diff --git a/drivers/usb/gadget/g_ffs.c b/drivers/usb/gadget/g_ffs.c index 240957048d3f..c3a583ea9938 100644 --- a/drivers/usb/gadget/g_ffs.c +++ b/drivers/usb/gadget/g_ffs.c | |||
@@ -24,7 +24,6 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "composite.c" | 26 | #include "composite.c" |
27 | #include "epautoconf.c" | ||
28 | 27 | ||
29 | #if defined CONFIG_USB_FUNCTIONFS_ETH || defined CONFIG_USB_FUNCTIONFS_RNDIS | 28 | #if defined CONFIG_USB_FUNCTIONFS_ETH || defined CONFIG_USB_FUNCTIONFS_RNDIS |
30 | # if defined USB_ETH_RNDIS | 29 | # if defined USB_ETH_RNDIS |
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index 0ccca58e7a8f..ba4e302e77d7 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #ifndef __GADGET_CHIPS_H | 15 | #ifndef __GADGET_CHIPS_H |
16 | #define __GADGET_CHIPS_H | 16 | #define __GADGET_CHIPS_H |
17 | 17 | ||
18 | #include <linux/usb/gadget.h> | ||
19 | |||
18 | /* | 20 | /* |
19 | * NOTICE: the entries below are alphabetical and should be kept | 21 | * NOTICE: the entries below are alphabetical and should be kept |
20 | * that way. | 22 | * that way. |
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 68a79b42c5a8..0c70708ef80f 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include "gadget_chips.h" | 38 | #include "gadget_chips.h" |
39 | 39 | ||
40 | #include "composite.c" | 40 | #include "composite.c" |
41 | #include "epautoconf.c" | ||
42 | #include "f_midi.c" | 41 | #include "f_midi.c" |
43 | 42 | ||
44 | /*-------------------------------------------------------------------------*/ | 43 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/gadget/hid.c b/drivers/usb/gadget/hid.c index 917c6eda916a..4880cdd9de43 100644 --- a/drivers/usb/gadget/hid.c +++ b/drivers/usb/gadget/hid.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | 18 | ||
19 | #include "gadget_chips.h" | ||
19 | #define DRIVER_DESC "HID Gadget" | 20 | #define DRIVER_DESC "HID Gadget" |
20 | #define DRIVER_VERSION "2010/03/16" | 21 | #define DRIVER_VERSION "2010/03/16" |
21 | 22 | ||
@@ -35,7 +36,6 @@ | |||
35 | */ | 36 | */ |
36 | 37 | ||
37 | #include "composite.c" | 38 | #include "composite.c" |
38 | #include "epautoconf.c" | ||
39 | 39 | ||
40 | #include "f_hid.c" | 40 | #include "f_hid.c" |
41 | 41 | ||
diff --git a/drivers/usb/gadget/mass_storage.c b/drivers/usb/gadget/mass_storage.c index 9675e61c9a8d..0b0f008427ed 100644 --- a/drivers/usb/gadget/mass_storage.c +++ b/drivers/usb/gadget/mass_storage.c | |||
@@ -49,7 +49,6 @@ | |||
49 | */ | 49 | */ |
50 | 50 | ||
51 | #include "composite.c" | 51 | #include "composite.c" |
52 | #include "epautoconf.c" | ||
53 | #include "f_mass_storage.c" | 52 | #include "f_mass_storage.c" |
54 | 53 | ||
55 | /*-------------------------------------------------------------------------*/ | 54 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index 6b6c12802afc..72fb30141ff4 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c | |||
@@ -44,7 +44,6 @@ MODULE_LICENSE("GPL"); | |||
44 | */ | 44 | */ |
45 | 45 | ||
46 | #include "composite.c" | 46 | #include "composite.c" |
47 | #include "epautoconf.c" | ||
48 | 47 | ||
49 | #include "f_mass_storage.c" | 48 | #include "f_mass_storage.c" |
50 | 49 | ||
diff --git a/drivers/usb/gadget/ncm.c b/drivers/usb/gadget/ncm.c index ce8d08e44602..69b660b79c09 100644 --- a/drivers/usb/gadget/ncm.c +++ b/drivers/usb/gadget/ncm.c | |||
@@ -37,7 +37,6 @@ | |||
37 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 37 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
38 | */ | 38 | */ |
39 | #include "composite.c" | 39 | #include "composite.c" |
40 | #include "epautoconf.c" | ||
41 | 40 | ||
42 | #include "f_ncm.c" | 41 | #include "f_ncm.c" |
43 | #include "u_ether.c" | 42 | #include "u_ether.c" |
diff --git a/drivers/usb/gadget/nokia.c b/drivers/usb/gadget/nokia.c index e2f4b9bdebc3..6834c6204df3 100644 --- a/drivers/usb/gadget/nokia.c +++ b/drivers/usb/gadget/nokia.c | |||
@@ -39,7 +39,6 @@ | |||
39 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 39 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
40 | */ | 40 | */ |
41 | #include "composite.c" | 41 | #include "composite.c" |
42 | #include "epautoconf.c" | ||
43 | 42 | ||
44 | #include "u_serial.c" | 43 | #include "u_serial.c" |
45 | #include "f_acm.c" | 44 | #include "f_acm.c" |
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 310b22d423a7..3d3d20d258f6 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -52,7 +52,6 @@ | |||
52 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 52 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
53 | */ | 53 | */ |
54 | #include "composite.c" | 54 | #include "composite.c" |
55 | #include "epautoconf.c" | ||
56 | 55 | ||
57 | /*-------------------------------------------------------------------------*/ | 56 | /*-------------------------------------------------------------------------*/ |
58 | 57 | ||
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index 39990bed0905..098c3d03dedd 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
@@ -38,7 +38,6 @@ | |||
38 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 38 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
39 | */ | 39 | */ |
40 | #include "composite.c" | 40 | #include "composite.c" |
41 | #include "epautoconf.c" | ||
42 | 41 | ||
43 | #include "f_acm.c" | 42 | #include "f_acm.c" |
44 | #include "f_obex.c" | 43 | #include "f_obex.c" |
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c index 926e0facfba5..e64a759f100d 100644 --- a/drivers/usb/gadget/tcm_usb_gadget.c +++ b/drivers/usb/gadget/tcm_usb_gadget.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <target/configfs_macros.h> | 25 | #include <target/configfs_macros.h> |
26 | #include <asm/unaligned.h> | 26 | #include <asm/unaligned.h> |
27 | 27 | ||
28 | #include "epautoconf.c" | ||
29 | #include "composite.c" | 28 | #include "composite.c" |
30 | 29 | ||
31 | #include "tcm_usb_gadget.h" | 30 | #include "tcm_usb_gadget.h" |
diff --git a/drivers/usb/gadget/webcam.c b/drivers/usb/gadget/webcam.c index 5e500e8403fd..66dfca86b215 100644 --- a/drivers/usb/gadget/webcam.c +++ b/drivers/usb/gadget/webcam.c | |||
@@ -24,7 +24,6 @@ | |||
24 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 24 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
25 | */ | 25 | */ |
26 | #include "composite.c" | 26 | #include "composite.c" |
27 | #include "epautoconf.c" | ||
28 | 27 | ||
29 | #include "uvc_queue.c" | 28 | #include "uvc_queue.c" |
30 | #include "uvc_video.c" | 29 | #include "uvc_video.c" |
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index e39a3b5da101..9a9adee2911a 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -59,7 +59,6 @@ | |||
59 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 59 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
60 | */ | 60 | */ |
61 | #include "composite.c" | 61 | #include "composite.c" |
62 | #include "epautoconf.c" | ||
63 | 62 | ||
64 | #include "f_sourcesink.c" | 63 | #include "f_sourcesink.c" |
65 | #include "f_loopback.c" | 64 | #include "f_loopback.c" |