@@ -116,7 +116,7 @@ acm_iad_descriptor = {
116116};
117117
118118
119- static struct usb_interface_descriptor acm_control_interface_desc __initdata = {
119+ static struct usb_interface_descriptor acm_control_interface_desc = {
120120 .bLength = USB_DT_INTERFACE_SIZE ,
121121 .bDescriptorType = USB_DT_INTERFACE ,
122122 /* .bInterfaceNumber = DYNAMIC */
@@ -127,7 +127,7 @@ static struct usb_interface_descriptor acm_control_interface_desc __initdata = {
127127 /* .iInterface = DYNAMIC */
128128};
129129
130- static struct usb_interface_descriptor acm_data_interface_desc __initdata = {
130+ static struct usb_interface_descriptor acm_data_interface_desc = {
131131 .bLength = USB_DT_INTERFACE_SIZE ,
132132 .bDescriptorType = USB_DT_INTERFACE ,
133133 /* .bInterfaceNumber = DYNAMIC */
@@ -138,30 +138,30 @@ static struct usb_interface_descriptor acm_data_interface_desc __initdata = {
138138 /* .iInterface = DYNAMIC */
139139};
140140
141- static struct usb_cdc_header_desc acm_header_desc __initdata = {
141+ static struct usb_cdc_header_desc acm_header_desc = {
142142 .bLength = sizeof (acm_header_desc ),
143143 .bDescriptorType = USB_DT_CS_INTERFACE ,
144144 .bDescriptorSubType = USB_CDC_HEADER_TYPE ,
145145 .bcdCDC = cpu_to_le16 (0x0110 ),
146146};
147147
148148static struct usb_cdc_call_mgmt_descriptor
149- acm_call_mgmt_descriptor __initdata = {
149+ acm_call_mgmt_descriptor = {
150150 .bLength = sizeof (acm_call_mgmt_descriptor ),
151151 .bDescriptorType = USB_DT_CS_INTERFACE ,
152152 .bDescriptorSubType = USB_CDC_CALL_MANAGEMENT_TYPE ,
153153 .bmCapabilities = 0 ,
154154 /* .bDataInterface = DYNAMIC */
155155};
156156
157- static struct usb_cdc_acm_descriptor acm_descriptor __initdata = {
157+ static struct usb_cdc_acm_descriptor acm_descriptor = {
158158 .bLength = sizeof (acm_descriptor ),
159159 .bDescriptorType = USB_DT_CS_INTERFACE ,
160160 .bDescriptorSubType = USB_CDC_ACM_TYPE ,
161161 .bmCapabilities = USB_CDC_CAP_LINE ,
162162};
163163
164- static struct usb_cdc_union_desc acm_union_desc __initdata = {
164+ static struct usb_cdc_union_desc acm_union_desc = {
165165 .bLength = sizeof (acm_union_desc ),
166166 .bDescriptorType = USB_DT_CS_INTERFACE ,
167167 .bDescriptorSubType = USB_CDC_UNION_TYPE ,
@@ -171,7 +171,7 @@ static struct usb_cdc_union_desc acm_union_desc __initdata = {
171171
172172/* full speed support: */
173173
174- static struct usb_endpoint_descriptor acm_fs_notify_desc __initdata = {
174+ static struct usb_endpoint_descriptor acm_fs_notify_desc = {
175175 .bLength = USB_DT_ENDPOINT_SIZE ,
176176 .bDescriptorType = USB_DT_ENDPOINT ,
177177 .bEndpointAddress = USB_DIR_IN ,
@@ -180,21 +180,21 @@ static struct usb_endpoint_descriptor acm_fs_notify_desc __initdata = {
180180 .bInterval = 1 << GS_LOG2_NOTIFY_INTERVAL ,
181181};
182182
183- static struct usb_endpoint_descriptor acm_fs_in_desc __initdata = {
183+ static struct usb_endpoint_descriptor acm_fs_in_desc = {
184184 .bLength = USB_DT_ENDPOINT_SIZE ,
185185 .bDescriptorType = USB_DT_ENDPOINT ,
186186 .bEndpointAddress = USB_DIR_IN ,
187187 .bmAttributes = USB_ENDPOINT_XFER_BULK ,
188188};
189189
190- static struct usb_endpoint_descriptor acm_fs_out_desc __initdata = {
190+ static struct usb_endpoint_descriptor acm_fs_out_desc = {
191191 .bLength = USB_DT_ENDPOINT_SIZE ,
192192 .bDescriptorType = USB_DT_ENDPOINT ,
193193 .bEndpointAddress = USB_DIR_OUT ,
194194 .bmAttributes = USB_ENDPOINT_XFER_BULK ,
195195};
196196
197- static struct usb_descriptor_header * acm_fs_function [] __initdata = {
197+ static struct usb_descriptor_header * acm_fs_function [] = {
198198 (struct usb_descriptor_header * ) & acm_iad_descriptor ,
199199 (struct usb_descriptor_header * ) & acm_control_interface_desc ,
200200 (struct usb_descriptor_header * ) & acm_header_desc ,
@@ -210,7 +210,7 @@ static struct usb_descriptor_header *acm_fs_function[] __initdata = {
210210
211211/* high speed support: */
212212
213- static struct usb_endpoint_descriptor acm_hs_notify_desc __initdata = {
213+ static struct usb_endpoint_descriptor acm_hs_notify_desc = {
214214 .bLength = USB_DT_ENDPOINT_SIZE ,
215215 .bDescriptorType = USB_DT_ENDPOINT ,
216216 .bEndpointAddress = USB_DIR_IN ,
@@ -219,21 +219,21 @@ static struct usb_endpoint_descriptor acm_hs_notify_desc __initdata = {
219219 .bInterval = GS_LOG2_NOTIFY_INTERVAL + 4 ,
220220};
221221
222- static struct usb_endpoint_descriptor acm_hs_in_desc __initdata = {
222+ static struct usb_endpoint_descriptor acm_hs_in_desc = {
223223 .bLength = USB_DT_ENDPOINT_SIZE ,
224224 .bDescriptorType = USB_DT_ENDPOINT ,
225225 .bmAttributes = USB_ENDPOINT_XFER_BULK ,
226226 .wMaxPacketSize = cpu_to_le16 (512 ),
227227};
228228
229- static struct usb_endpoint_descriptor acm_hs_out_desc __initdata = {
229+ static struct usb_endpoint_descriptor acm_hs_out_desc = {
230230 .bLength = USB_DT_ENDPOINT_SIZE ,
231231 .bDescriptorType = USB_DT_ENDPOINT ,
232232 .bmAttributes = USB_ENDPOINT_XFER_BULK ,
233233 .wMaxPacketSize = cpu_to_le16 (512 ),
234234};
235235
236- static struct usb_descriptor_header * acm_hs_function [] __initdata = {
236+ static struct usb_descriptor_header * acm_hs_function [] = {
237237 (struct usb_descriptor_header * ) & acm_iad_descriptor ,
238238 (struct usb_descriptor_header * ) & acm_control_interface_desc ,
239239 (struct usb_descriptor_header * ) & acm_header_desc ,
@@ -571,7 +571,7 @@ static int acm_send_break(struct gserial *port, int duration)
571571/*-------------------------------------------------------------------------*/
572572
573573/* ACM function driver setup/binding */
574- static int __init
574+ static int
575575acm_bind (struct usb_configuration * c , struct usb_function * f )
576576{
577577 struct usb_composite_dev * cdev = c -> cdev ;
@@ -719,7 +719,7 @@ static inline bool can_support_cdc(struct usb_configuration *c)
719719 * handle all the ones it binds. Caller is also responsible
720720 * for calling @gserial_cleanup() before module unload.
721721 */
722- int __init acm_bind_config (struct usb_configuration * c , u8 port_num )
722+ int acm_bind_config (struct usb_configuration * c , u8 port_num )
723723{
724724 struct f_acm * acm ;
725725 int status ;
0 commit comments