The uvc_function_connect() and uvc_function_disconnect() functions are to be
removed, because there is no users of them.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
---
 drivers/usb/gadget/f_uvc.c |   24 ------------------------
 drivers/usb/gadget/uvc.h   |    3 ---
 2 files changed, 27 deletions(-)

diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c
index 38dcedd..bea22d1 100644
--- a/drivers/usb/gadget/f_uvc.c
+++ b/drivers/usb/gadget/f_uvc.c
@@ -375,30 +375,6 @@ uvc_function_disable(struct usb_function *f)
 }
 
 /* --------------------------------------------------------------------------
- * Connection / disconnection
- */
-
-void
-uvc_function_connect(struct uvc_device *uvc)
-{
-       struct usb_composite_dev *cdev = uvc->func.config->cdev;
-       int ret;
-
-       if ((ret = usb_function_activate(&uvc->func)) < 0)
-               INFO(cdev, "UVC connect failed with %d\n", ret);
-}
-
-void
-uvc_function_disconnect(struct uvc_device *uvc)
-{
-       struct usb_composite_dev *cdev = uvc->func.config->cdev;
-       int ret;
-
-       if ((ret = usb_function_deactivate(&uvc->func)) < 0)
-               INFO(cdev, "UVC disconnect failed with %d\n", ret);
-}
-
-/* --------------------------------------------------------------------------
  * USB probe and disconnect
  */
 
diff --git a/drivers/usb/gadget/uvc.h b/drivers/usb/gadget/uvc.h
index 817e9e1..87d69c0 100644
--- a/drivers/usb/gadget/uvc.h
+++ b/drivers/usb/gadget/uvc.h
@@ -191,9 +191,6 @@ struct uvc_file_handle
 extern void uvc_function_setup_continue(struct uvc_device *uvc);
 extern void uvc_endpoint_stream(struct uvc_device *dev);
 
-extern void uvc_function_connect(struct uvc_device *uvc);
-extern void uvc_function_disconnect(struct uvc_device *uvc);
-
 #endif /* __KERNEL__ */
 
 #endif /* _UVC_GADGET_H_ */
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to