diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-06 14:11:09 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 08:36:04 -0400 |
commit | a84d9e5361bcfbff1c84481bd9c04fc58a56d83b (patch) | |
tree | d84989410bb1e1b2a32cf9e7b782053ce9c1c4ad /drivers/usb/gadget | |
parent | 4001a7a163d8e49eb9baf294527ad2ed50202e22 (diff) |
usb: gadget: start with libcomposite
This patch aims to be simple. It removes #include usbstribgs.c line from each
gadget and creates libcomposite.ko which has only one member, that is
usbstribgs.c.
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/Kconfig | 25 | ||||
-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 | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/cdc2.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/ether.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/g_ffs.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/hid.c | 1 | ||||
-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/usbstring.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/webcam.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/zero.c | 1 |
20 files changed, 30 insertions, 18 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 75b76d5a0fe9..a53be32c22cf 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -494,6 +494,12 @@ endmenu | |||
494 | # | 494 | # |
495 | # USB Gadget Drivers | 495 | # USB Gadget Drivers |
496 | # | 496 | # |
497 | |||
498 | # composite based drivers | ||
499 | config USB_LIBCOMPOSITE | ||
500 | tristate | ||
501 | depends on USB_GADGET | ||
502 | |||
497 | choice | 503 | choice |
498 | tristate "USB Gadget Drivers" | 504 | tristate "USB Gadget Drivers" |
499 | default USB_ETH | 505 | default USB_ETH |
@@ -517,6 +523,7 @@ choice | |||
517 | 523 | ||
518 | config USB_ZERO | 524 | config USB_ZERO |
519 | tristate "Gadget Zero (DEVELOPMENT)" | 525 | tristate "Gadget Zero (DEVELOPMENT)" |
526 | select USB_LIBCOMPOSITE | ||
520 | help | 527 | help |
521 | Gadget Zero is a two-configuration device. It either sinks and | 528 | Gadget Zero is a two-configuration device. It either sinks and |
522 | sources bulk data; or it loops back a configurable number of | 529 | sources bulk data; or it loops back a configurable number of |
@@ -552,6 +559,7 @@ config USB_ZERO_HNPTEST | |||
552 | config USB_AUDIO | 559 | config USB_AUDIO |
553 | tristate "Audio Gadget (EXPERIMENTAL)" | 560 | tristate "Audio Gadget (EXPERIMENTAL)" |
554 | depends on SND | 561 | depends on SND |
562 | select USB_LIBCOMPOSITE | ||
555 | select SND_PCM | 563 | select SND_PCM |
556 | help | 564 | help |
557 | This Gadget Audio driver is compatible with USB Audio Class | 565 | This Gadget Audio driver is compatible with USB Audio Class |
@@ -580,6 +588,7 @@ config GADGET_UAC1 | |||
580 | config USB_ETH | 588 | config USB_ETH |
581 | tristate "Ethernet Gadget (with CDC Ethernet support)" | 589 | tristate "Ethernet Gadget (with CDC Ethernet support)" |
582 | depends on NET | 590 | depends on NET |
591 | select USB_LIBCOMPOSITE | ||
583 | select CRC32 | 592 | select CRC32 |
584 | help | 593 | help |
585 | This driver implements Ethernet style communication, in one of | 594 | This driver implements Ethernet style communication, in one of |
@@ -615,6 +624,7 @@ config USB_ETH | |||
615 | config USB_ETH_RNDIS | 624 | config USB_ETH_RNDIS |
616 | bool "RNDIS support" | 625 | bool "RNDIS support" |
617 | depends on USB_ETH | 626 | depends on USB_ETH |
627 | select USB_LIBCOMPOSITE | ||
618 | default y | 628 | default y |
619 | help | 629 | help |
620 | Microsoft Windows XP bundles the "Remote NDIS" (RNDIS) protocol, | 630 | Microsoft Windows XP bundles the "Remote NDIS" (RNDIS) protocol, |
@@ -633,6 +643,7 @@ config USB_ETH_RNDIS | |||
633 | config USB_ETH_EEM | 643 | config USB_ETH_EEM |
634 | bool "Ethernet Emulation Model (EEM) support" | 644 | bool "Ethernet Emulation Model (EEM) support" |
635 | depends on USB_ETH | 645 | depends on USB_ETH |
646 | select USB_LIBCOMPOSITE | ||
636 | default n | 647 | default n |
637 | help | 648 | help |
638 | CDC EEM is a newer USB standard that is somewhat simpler than CDC ECM | 649 | CDC EEM is a newer USB standard that is somewhat simpler than CDC ECM |
@@ -649,6 +660,7 @@ config USB_ETH_EEM | |||
649 | config USB_G_NCM | 660 | config USB_G_NCM |
650 | tristate "Network Control Model (NCM) support" | 661 | tristate "Network Control Model (NCM) support" |
651 | depends on NET | 662 | depends on NET |
663 | select USB_LIBCOMPOSITE | ||
652 | select CRC32 | 664 | select CRC32 |
653 | help | 665 | help |
654 | This driver implements USB CDC NCM subclass standard. NCM is | 666 | This driver implements USB CDC NCM subclass standard. NCM is |
@@ -678,6 +690,7 @@ config USB_GADGETFS | |||
678 | config USB_FUNCTIONFS | 690 | config USB_FUNCTIONFS |
679 | tristate "Function Filesystem (EXPERIMENTAL)" | 691 | tristate "Function Filesystem (EXPERIMENTAL)" |
680 | depends on EXPERIMENTAL | 692 | depends on EXPERIMENTAL |
693 | select USB_LIBCOMPOSITE | ||
681 | select USB_FUNCTIONFS_GENERIC if !(USB_FUNCTIONFS_ETH || USB_FUNCTIONFS_RNDIS) | 694 | select USB_FUNCTIONFS_GENERIC if !(USB_FUNCTIONFS_ETH || USB_FUNCTIONFS_RNDIS) |
682 | help | 695 | help |
683 | The Function Filesystem (FunctionFS) lets one create USB | 696 | The Function Filesystem (FunctionFS) lets one create USB |
@@ -741,6 +754,7 @@ config USB_FILE_STORAGE_TEST | |||
741 | config USB_MASS_STORAGE | 754 | config USB_MASS_STORAGE |
742 | tristate "Mass Storage Gadget" | 755 | tristate "Mass Storage Gadget" |
743 | depends on BLOCK | 756 | depends on BLOCK |
757 | select USB_LIBCOMPOSITE | ||
744 | help | 758 | help |
745 | The Mass Storage Gadget acts as a USB Mass Storage disk drive. | 759 | The Mass Storage Gadget acts as a USB Mass Storage disk drive. |
746 | As its storage repository it can use a regular file or a block | 760 | As its storage repository it can use a regular file or a block |
@@ -756,6 +770,7 @@ config USB_MASS_STORAGE | |||
756 | config USB_GADGET_TARGET | 770 | config USB_GADGET_TARGET |
757 | tristate "USB Gadget Target Fabric Module" | 771 | tristate "USB Gadget Target Fabric Module" |
758 | depends on TARGET_CORE | 772 | depends on TARGET_CORE |
773 | select USB_LIBCOMPOSITE | ||
759 | help | 774 | help |
760 | This fabric is an USB gadget. Two USB protocols are supported that is | 775 | This fabric is an USB gadget. Two USB protocols are supported that is |
761 | BBB or BOT (Bulk Only Transport) and UAS (USB Attached SCSI). BOT is | 776 | BBB or BOT (Bulk Only Transport) and UAS (USB Attached SCSI). BOT is |
@@ -765,6 +780,7 @@ config USB_GADGET_TARGET | |||
765 | 780 | ||
766 | config USB_G_SERIAL | 781 | config USB_G_SERIAL |
767 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" | 782 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" |
783 | select USB_LIBCOMPOSITE | ||
768 | help | 784 | help |
769 | The Serial Gadget talks to the Linux-USB generic serial driver. | 785 | The Serial Gadget talks to the Linux-USB generic serial driver. |
770 | This driver supports a CDC-ACM module option, which can be used | 786 | This driver supports a CDC-ACM module option, which can be used |
@@ -785,6 +801,7 @@ config USB_G_SERIAL | |||
785 | config USB_MIDI_GADGET | 801 | config USB_MIDI_GADGET |
786 | tristate "MIDI Gadget (EXPERIMENTAL)" | 802 | tristate "MIDI Gadget (EXPERIMENTAL)" |
787 | depends on SND && EXPERIMENTAL | 803 | depends on SND && EXPERIMENTAL |
804 | select USB_LIBCOMPOSITE | ||
788 | select SND_RAWMIDI | 805 | select SND_RAWMIDI |
789 | help | 806 | help |
790 | The MIDI Gadget acts as a USB Audio device, with one MIDI | 807 | The MIDI Gadget acts as a USB Audio device, with one MIDI |
@@ -798,6 +815,7 @@ config USB_MIDI_GADGET | |||
798 | 815 | ||
799 | config USB_G_PRINTER | 816 | config USB_G_PRINTER |
800 | tristate "Printer Gadget" | 817 | tristate "Printer Gadget" |
818 | select USB_LIBCOMPOSITE | ||
801 | help | 819 | help |
802 | The Printer Gadget channels data between the USB host and a | 820 | The Printer Gadget channels data between the USB host and a |
803 | userspace program driving the print engine. The user space | 821 | userspace program driving the print engine. The user space |
@@ -814,6 +832,7 @@ config USB_G_PRINTER | |||
814 | config USB_CDC_COMPOSITE | 832 | config USB_CDC_COMPOSITE |
815 | tristate "CDC Composite Device (Ethernet and ACM)" | 833 | tristate "CDC Composite Device (Ethernet and ACM)" |
816 | depends on NET | 834 | depends on NET |
835 | select USB_LIBCOMPOSITE | ||
817 | help | 836 | help |
818 | This driver provides two functions in one configuration: | 837 | This driver provides two functions in one configuration: |
819 | a CDC Ethernet (ECM) link, and a CDC ACM (serial port) link. | 838 | a CDC Ethernet (ECM) link, and a CDC ACM (serial port) link. |
@@ -828,6 +847,7 @@ config USB_CDC_COMPOSITE | |||
828 | config USB_G_NOKIA | 847 | config USB_G_NOKIA |
829 | tristate "Nokia composite gadget" | 848 | tristate "Nokia composite gadget" |
830 | depends on PHONET | 849 | depends on PHONET |
850 | select USB_LIBCOMPOSITE | ||
831 | help | 851 | help |
832 | The Nokia composite gadget provides support for acm, obex | 852 | The Nokia composite gadget provides support for acm, obex |
833 | and phonet in only one composite gadget driver. | 853 | and phonet in only one composite gadget driver. |
@@ -838,6 +858,7 @@ config USB_G_NOKIA | |||
838 | config USB_G_ACM_MS | 858 | config USB_G_ACM_MS |
839 | tristate "CDC Composite Device (ACM and mass storage)" | 859 | tristate "CDC Composite Device (ACM and mass storage)" |
840 | depends on BLOCK | 860 | depends on BLOCK |
861 | select USB_LIBCOMPOSITE | ||
841 | help | 862 | help |
842 | This driver provides two functions in one configuration: | 863 | This driver provides two functions in one configuration: |
843 | a mass storage, and a CDC ACM (serial port) link. | 864 | a mass storage, and a CDC ACM (serial port) link. |
@@ -849,6 +870,7 @@ config USB_G_MULTI | |||
849 | tristate "Multifunction Composite Gadget (EXPERIMENTAL)" | 870 | tristate "Multifunction Composite Gadget (EXPERIMENTAL)" |
850 | depends on BLOCK && NET | 871 | depends on BLOCK && NET |
851 | select USB_G_MULTI_CDC if !USB_G_MULTI_RNDIS | 872 | select USB_G_MULTI_CDC if !USB_G_MULTI_RNDIS |
873 | select USB_LIBCOMPOSITE | ||
852 | help | 874 | help |
853 | The Multifunction Composite Gadget provides Ethernet (RNDIS | 875 | The Multifunction Composite Gadget provides Ethernet (RNDIS |
854 | and/or CDC Ethernet), mass storage and ACM serial link | 876 | and/or CDC Ethernet), mass storage and ACM serial link |
@@ -889,6 +911,7 @@ config USB_G_MULTI_CDC | |||
889 | 911 | ||
890 | config USB_G_HID | 912 | config USB_G_HID |
891 | tristate "HID Gadget" | 913 | tristate "HID Gadget" |
914 | select USB_LIBCOMPOSITE | ||
892 | help | 915 | help |
893 | The HID gadget driver provides generic emulation of USB | 916 | The HID gadget driver provides generic emulation of USB |
894 | Human Interface Devices (HID). | 917 | Human Interface Devices (HID). |
@@ -899,8 +922,10 @@ config USB_G_HID | |||
899 | Say "y" to link the driver statically, or "m" to build a | 922 | Say "y" to link the driver statically, or "m" to build a |
900 | dynamically linked module called "g_hid". | 923 | dynamically linked module called "g_hid". |
901 | 924 | ||
925 | # Standalone / single function gadgets | ||
902 | config USB_G_DBGP | 926 | config USB_G_DBGP |
903 | tristate "EHCI Debug Device Gadget" | 927 | tristate "EHCI Debug Device Gadget" |
928 | select USB_LIBCOMPOSITE | ||
904 | help | 929 | help |
905 | This gadget emulates an EHCI Debug device. This is useful when you want | 930 | This gadget emulates an EHCI Debug device. This is useful when you want |
906 | to interact with an EHCI Debug Port. | 931 | to interact with an EHCI Debug Port. |
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile index d84f92325a74..eadbc86333f6 100644 --- a/drivers/usb/gadget/Makefile +++ b/drivers/usb/gadget/Makefile | |||
@@ -4,6 +4,8 @@ | |||
4 | ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG | 4 | 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 | ||
8 | libcomposite-y := usbstring.o | ||
7 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o | 9 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o |
8 | obj-$(CONFIG_USB_NET2272) += net2272.o | 10 | obj-$(CONFIG_USB_NET2272) += net2272.o |
9 | 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 65a2f3cbcde3..9820960dfc5c 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 "usbstring.c" | ||
46 | #include "config.c" | 45 | #include "config.c" |
47 | #include "epautoconf.c" | 46 | #include "epautoconf.c" |
48 | #include "u_serial.c" | 47 | #include "u_serial.c" |
diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c index dd339bc5b40c..76e54b44c27a 100644 --- a/drivers/usb/gadget/audio.c +++ b/drivers/usb/gadget/audio.c | |||
@@ -27,7 +27,6 @@ | |||
27 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 27 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
28 | */ | 28 | */ |
29 | #include "composite.c" | 29 | #include "composite.c" |
30 | #include "usbstring.c" | ||
31 | #include "config.c" | 30 | #include "config.c" |
32 | #include "epautoconf.c" | 31 | #include "epautoconf.c" |
33 | 32 | ||
diff --git a/drivers/usb/gadget/cdc2.c b/drivers/usb/gadget/cdc2.c index b7d984b54ca9..74a9c7f65ec8 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 "usbstring.c" | ||
48 | #include "config.c" | 47 | #include "config.c" |
49 | #include "epautoconf.c" | 48 | #include "epautoconf.c" |
50 | #include "u_serial.c" | 49 | #include "u_serial.c" |
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 4580ec09cc53..e16094e5d1d2 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 "usbstring.c" | ||
107 | #include "config.c" | 106 | #include "config.c" |
108 | #include "epautoconf.c" | 107 | #include "epautoconf.c" |
109 | 108 | ||
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index cdacae706b70..8d0166b76d40 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -265,7 +265,6 @@ | |||
265 | * the runtime footprint, and giving us at least some parts of what | 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. | 266 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
267 | */ | 267 | */ |
268 | #include "usbstring.c" | ||
269 | #include "config.c" | 268 | #include "config.c" |
270 | #include "epautoconf.c" | 269 | #include "epautoconf.c" |
271 | 270 | ||
diff --git a/drivers/usb/gadget/g_ffs.c b/drivers/usb/gadget/g_ffs.c index da9809f55cb5..407b5ccc64a4 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 "usbstring.c" | ||
28 | #include "config.c" | 27 | #include "config.c" |
29 | #include "epautoconf.c" | 28 | #include "epautoconf.c" |
30 | 29 | ||
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 1e3cd378a2d7..135b3900eaa3 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 "usbstring.c" | ||
42 | #include "config.c" | 41 | #include "config.c" |
43 | #include "epautoconf.c" | 42 | #include "epautoconf.c" |
44 | #include "f_midi.c" | 43 | #include "f_midi.c" |
diff --git a/drivers/usb/gadget/hid.c b/drivers/usb/gadget/hid.c index 8502e56d73bc..effda2e0742b 100644 --- a/drivers/usb/gadget/hid.c +++ b/drivers/usb/gadget/hid.c | |||
@@ -35,7 +35,6 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "composite.c" | 37 | #include "composite.c" |
38 | #include "usbstring.c" | ||
39 | #include "config.c" | 38 | #include "config.c" |
40 | #include "epautoconf.c" | 39 | #include "epautoconf.c" |
41 | 40 | ||
diff --git a/drivers/usb/gadget/mass_storage.c b/drivers/usb/gadget/mass_storage.c index 480edbc368e5..a7f32c312a6b 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 "usbstring.c" | ||
53 | #include "config.c" | 52 | #include "config.c" |
54 | #include "epautoconf.c" | 53 | #include "epautoconf.c" |
55 | #include "f_mass_storage.c" | 54 | #include "f_mass_storage.c" |
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index 13db7ccb9571..71c1fabdbb78 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 "usbstring.c" | ||
48 | #include "config.c" | 47 | #include "config.c" |
49 | #include "epautoconf.c" | 48 | #include "epautoconf.c" |
50 | 49 | ||
diff --git a/drivers/usb/gadget/ncm.c b/drivers/usb/gadget/ncm.c index 9a20057896cd..d7e6b1ee8664 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 "usbstring.c" | ||
41 | #include "config.c" | 40 | #include "config.c" |
42 | #include "epautoconf.c" | 41 | #include "epautoconf.c" |
43 | 42 | ||
diff --git a/drivers/usb/gadget/nokia.c b/drivers/usb/gadget/nokia.c index a5b5e7162fef..474c77ca58c0 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 "usbstring.c" | ||
43 | #include "config.c" | 42 | #include "config.c" |
44 | #include "epautoconf.c" | 43 | #include "epautoconf.c" |
45 | 44 | ||
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 33c0c07493e8..c55e7d99b810 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 "usbstring.c" | ||
56 | #include "config.c" | 55 | #include "config.c" |
57 | #include "epautoconf.c" | 56 | #include "epautoconf.c" |
58 | 57 | ||
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index ea3f8e9344ae..88baa9e3f827 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 "usbstring.c" | ||
42 | #include "config.c" | 41 | #include "config.c" |
43 | #include "epautoconf.c" | 42 | #include "epautoconf.c" |
44 | 43 | ||
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c index 35ca09af9b4a..327af6883715 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 "usbstring.c" | ||
29 | #include "epautoconf.c" | 28 | #include "epautoconf.c" |
30 | #include "config.c" | 29 | #include "config.c" |
31 | #include "composite.c" | 30 | #include "composite.c" |
diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index 4d25b9009edf..24e9bbd255a7 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/module.h> | ||
12 | #include <linux/list.h> | 13 | #include <linux/list.h> |
13 | #include <linux/string.h> | 14 | #include <linux/string.h> |
14 | #include <linux/device.h> | 15 | #include <linux/device.h> |
@@ -68,4 +69,5 @@ usb_gadget_get_string (struct usb_gadget_strings *table, int id, u8 *buf) | |||
68 | buf [1] = USB_DT_STRING; | 69 | buf [1] = USB_DT_STRING; |
69 | return buf [0]; | 70 | return buf [0]; |
70 | } | 71 | } |
71 | 72 | EXPORT_SYMBOL_GPL(usb_gadget_get_string); | |
73 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/usb/gadget/webcam.c b/drivers/usb/gadget/webcam.c index 2a617c3f5a40..dc8fd5cc4f92 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 "usbstring.c" | ||
28 | #include "config.c" | 27 | #include "config.c" |
29 | #include "epautoconf.c" | 28 | #include "epautoconf.c" |
30 | 29 | ||
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 90df613cccc0..4469be8fcee3 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 "usbstring.c" | ||
63 | #include "config.c" | 62 | #include "config.c" |
64 | #include "epautoconf.c" | 63 | #include "epautoconf.c" |
65 | 64 | ||