usb: gadget: accessory: Fix section mismatch
authorBenoit Goby <benoit@android.com>
Sat, 23 Jun 2012 01:17:10 +0000 (18:17 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:50 +0000 (13:40 -0700)
create_bulk_endpoints should not be __init since it is called when
accessory is enabled

Change-Id: If827a4531f0f6c15af938345163923186368e2a5
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/f_accessory.c

index a5818227611a4bdb6eabde2e0cbbb3bc7942ddde..04ceb099656071ba328c2b9611a5cbb3cfac9649 100644 (file)
@@ -296,7 +296,7 @@ static void acc_complete_set_string(struct usb_ep *ep, struct usb_request *req)
        }
 }
 
-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)
 {