提交 23a113a0 编写于 作者: A Andrzej Pietrasiewicz 提交者: Felipe Balbi

usb: gadget: ether: put_usb_function on unbind

Fix bugs introduced in

9c62ce83
usb: gadget: ether: convert to new interface of f_ecm

94b5573e
usb: gadget: ether: convert to new interface of f_eem

8af5232d
usb: gadget: ether: convert to new interface of f_subset

9bd4a10e
usb: gadget: ether: convert to new interface of f_rndis
Acked-by: NMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 c1f01be4
......@@ -449,14 +449,20 @@ static int __init eth_bind(struct usb_composite_dev *cdev)
static int __exit eth_unbind(struct usb_composite_dev *cdev)
{
if (has_rndis())
if (has_rndis()) {
usb_put_function(f_rndis);
usb_put_function_instance(fi_rndis);
if (use_eem)
}
if (use_eem) {
usb_put_function(f_eem);
usb_put_function_instance(fi_eem);
else if (can_support_ecm(cdev->gadget))
} else if (can_support_ecm(cdev->gadget)) {
usb_put_function(f_ecm);
usb_put_function_instance(fi_ecm);
else
} else {
usb_put_function(f_geth);
usb_put_function_instance(fi_geth);
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册