diff options
author | Martin Jackson <mjackson220.list@gmail.com> | 2011-05-17 11:02:06 +0200 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2011-12-15 17:33:43 -0600 |
commit | 8c541d77ed6473a1287beee6ce0fd4efae914e18 (patch) | |
tree | 952b94b11df263c0e5b419862eff0c563699e975 | |
parent | da08f913ec82fe3d76a9dc4653514b276862c418 (diff) |
USB: gadget: f_audio: Fix invalid dereference of initdata
as_out_ep_desc contines to be used during gadget enumeration and thus
should not be marked as __initdata
Signed-off-by: Martin Jackson <mjackson220.list@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index db41ebe708d1..19e4c8641f64 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c @@ -177,7 +177,7 @@ static struct uac_format_type_i_discrete_descriptor_1 as_type_i_desc = { }; /* Standard ISO OUT Endpoint Descriptor */ -static struct usb_endpoint_descriptor as_out_ep_desc __initdata = { +static struct usb_endpoint_descriptor as_out_ep_desc = { .bLength = USB_DT_ENDPOINT_AUDIO_SIZE, .bDescriptorType = USB_DT_ENDPOINT, .bEndpointAddress = USB_DIR_OUT, |