f_mtp:Remove the unneccessary QCOM changes
authora17671 <a17671@motorola.com>
Tue, 12 Feb 2019 06:28:45 +0000 (14:28 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:45 +0000 (17:30 +0800)
QCOM mtp only allow one mtp instance at a time
While Samsung needs to have both mtp and ptp instances
Remove the unneccessary QCOM code

Change-Id: I820b5dd84a3a651aa3c0b10da9fc2076b6097d68
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1307514
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jun Zhang <zhangj10@motorola.com>
Submit-Approved: Jira Key

drivers/usb/gadget/function/f_mtp.c

index d605b3262030bfaf1694a6080d2978cf8be431dc..55e82c183d9852504657f245d37dd55f12fd582a 100644 (file)
@@ -1393,7 +1393,6 @@ mtp_function_bind(struct usb_configuration *c, struct usb_function *f)
                mtp_ss_out_comp_desc.bMaxBurst = max_burst;\r
        }\r
 \r
-       fi_mtp->func_inst.f = &dev->function;\r
        DBG(cdev, "%s speed %s: IN/%s, OUT/%s\n",\r
                gadget_is_superspeed(c->cdev->gadget) ? "super" :\r
                (gadget_is_dualspeed(c->cdev->gadget) ? "dual" : "full"),\r
@@ -1425,7 +1424,6 @@ mtp_function_unbind(struct usb_configuration *c, struct usb_function *f)
        spin_unlock_irq(&dev->lock);\r
        kfree(f->os_desc_table);\r
        f->os_desc_n = 0;\r
-       fi_mtp->func_inst.f = NULL;\r
 }\r
 \r
 static int mtp_function_set_alt(struct usb_function *f,\r