OSDN Git Service

Merge "usb: gadget: f_mtp: Handle OS descriptors properly"
authorLinux Build Service Account <lnxbuild@quicinc.com>
Thu, 11 May 2017 06:04:00 +0000 (23:04 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 11 May 2017 06:04:00 +0000 (23:04 -0700)
1  2 
drivers/usb/gadget/function/f_mtp.c

@@@ -1916,8 -1917,8 +1919,7 @@@ struct usb_function *function_alloc_mtp
        dev->function.setup = mtp_ctrlreq_configfs;
        dev->function.free_func = mtp_free;
        dev->is_ptp = !mtp_config;
-       fi->f = &dev->function;
  
 -      mutex_init(&dev->read_mutex);
        return &dev->function;
  }
  EXPORT_SYMBOL_GPL(function_alloc_mtp_ptp);