usb: gadget: configfs: add a method to unregister the gadget
[deliverable/linux.git] / drivers / usb / gadget / configfs.c
index 1bfacbfca1d82970b562f4155f1eaa0f912d9d55..25885112fa35b0cc5b0b25733c91d91365606fb8 100644 (file)
@@ -991,6 +991,14 @@ static struct configfs_subsystem gadget_subsys = {
        .su_mutex = __MUTEX_INITIALIZER(gadget_subsys.su_mutex),
 };
 
+void unregister_gadget_item(struct config_item *item)
+{
+       struct gadget_info *gi = to_gadget_info(item);
+
+       unregister_gadget(gi);
+}
+EXPORT_SYMBOL(unregister_gadget_item);
+
 static int __init gadget_cfs_init(void)
 {
        int ret;
This page took 0.028503 seconds and 5 git commands to generate.