From 4a4414416d5d6f9a6522aa6900473e3cdc5f1393 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Mon, 28 Jun 2010 15:29:00 -0400 Subject: [PATCH] USB: gadget: android: Remove unused function android_usb_set_connected() Signed-off-by: Mike Lockwood --- drivers/usb/gadget/android.c | 10 ---------- include/linux/usb/android_composite.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c index 6e3c32e3f7e0..7618a073de58 100644 --- a/drivers/usb/gadget/android.c +++ b/drivers/usb/gadget/android.c @@ -110,16 +110,6 @@ static struct usb_device_descriptor device_desc = { static struct list_head _functions = LIST_HEAD_INIT(_functions); static int _registered_function_count = 0; -void android_usb_set_connected(int connected) -{ - if (_android_dev && _android_dev->cdev && _android_dev->cdev->gadget) { - if (connected) - usb_gadget_connect(_android_dev->cdev->gadget); - else - usb_gadget_disconnect(_android_dev->cdev->gadget); - } -} - static struct android_usb_function *get_function(const char *name) { struct android_usb_function *f; diff --git a/include/linux/usb/android_composite.h b/include/linux/usb/android_composite.h index 50889ba138b9..ac09dcb71775 100644 --- a/include/linux/usb/android_composite.h +++ b/include/linux/usb/android_composite.h @@ -88,8 +88,6 @@ struct usb_ether_platform_data { const char *vendorDescr; }; -extern void android_usb_set_connected(int on); - extern void android_register_function(struct android_usb_function *f); extern void android_enable_function(struct usb_function *f, int enable); -- 2.34.1