From: Todd Poynor Date: Wed, 28 Nov 2012 21:03:40 +0000 (-0800) Subject: usb: gadget: accessory: Fix section mismatch (again) X-Git-Tag: firefly_0821_release~2958^2~389 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc894a651ce87549e35ad3b9aec5243aacf2c1e4;p=firefly-linux-kernel-4.4.55.git usb: gadget: accessory: Fix section mismatch (again) create_bulk_endpoints should not be __init since it is called when accessory is enabled. Change-Id: Iac6e9f29d53c93760e926efd8e7603432632acb4 Signed-off-by: Todd Poynor --- diff --git a/drivers/usb/gadget/f_accessory.c b/drivers/usb/gadget/f_accessory.c index 921db5a193d6..a244265c1143 100644 --- a/drivers/usb/gadget/f_accessory.c +++ b/drivers/usb/gadget/f_accessory.c @@ -482,7 +482,7 @@ static int acc_unregister_hid(struct acc_dev *dev, int id) return 0; } -static int __init create_bulk_endpoints(struct acc_dev *dev, +static int create_bulk_endpoints(struct acc_dev *dev, struct usb_endpoint_descriptor *in_desc, struct usb_endpoint_descriptor *out_desc) {