aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/function')
-rw-r--r--drivers/usb/gadget/function/f_accessory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c
index 32efcf2e59c4..783d9cd0af9c 100644
--- a/drivers/usb/gadget/function/f_accessory.c
+++ b/drivers/usb/gadget/function/f_accessory.c
@@ -274,7 +274,6 @@ static struct usb_gadget_strings *acc_strings[] = {
274 NULL, 274 NULL,
275}; 275};
276 276
277/* temporary variable used between acc_open() and acc_gadget_bind() */
278static struct acc_dev *_acc_dev; 277static struct acc_dev *_acc_dev;
279 278
280struct acc_instance { 279struct acc_instance {
@@ -1317,7 +1316,6 @@ static int acc_setup(void)
1317 INIT_WORK(&dev->getprotocol_work, acc_getprotocol_work); 1316 INIT_WORK(&dev->getprotocol_work, acc_getprotocol_work);
1318 INIT_WORK(&dev->sendstring_work, acc_sendstring_work); 1317 INIT_WORK(&dev->sendstring_work, acc_sendstring_work);
1319 1318
1320 /* _acc_dev must be set before calling usb_gadget_register_driver */
1321 _acc_dev = dev; 1319 _acc_dev = dev;
1322 1320
1323 ret = misc_register(&acc_device); 1321 ret = misc_register(&acc_device);