Merge "usb: gadget: f_mtp: Handle mtp os desc properly" into msm-4.8
diff --git a/drivers/usb/gadget/function/f_mtp.c b/drivers/usb/gadget/function/f_mtp.c
index 13f8bb5..f848082 100644
--- a/drivers/usb/gadget/function/f_mtp.c
+++ b/drivers/usb/gadget/function/f_mtp.c
@@ -1827,6 +1827,7 @@
 	dev->function.disable = mtp_function_disable;
 	dev->function.setup = mtp_ctrlreq_configfs;
 	dev->function.free_func = mtp_free;
+	fi->f = &dev->function;
 
 	return &dev->function;
 }