aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson2011-05-17 11:02:06 +0200
committerGreg Kroah-Hartman2011-05-17 11:20:24 -0700
commite6251a921716fca9c2e3008af2d8d0d5657a59bc (patch)
tree3dec7b504a4544fc329197839883e3e92efed8c8
parent1e12c910eed82da6971f1c0421a069c680faba2e (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c
index 0111f8a9cf7f..8ee330a2ab58 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,