diff options
-rw-r--r-- | drivers/usb/gadget/configfs.c | 8 | ||||
-rw-r--r-- | drivers/usb/gadget/configfs.h | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 1bfacbfca1d8..25885112fa35 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c | |||
@@ -991,6 +991,14 @@ static struct configfs_subsystem gadget_subsys = { | |||
991 | .su_mutex = __MUTEX_INITIALIZER(gadget_subsys.su_mutex), | 991 | .su_mutex = __MUTEX_INITIALIZER(gadget_subsys.su_mutex), |
992 | }; | 992 | }; |
993 | 993 | ||
994 | void unregister_gadget_item(struct config_item *item) | ||
995 | { | ||
996 | struct gadget_info *gi = to_gadget_info(item); | ||
997 | |||
998 | unregister_gadget(gi); | ||
999 | } | ||
1000 | EXPORT_SYMBOL(unregister_gadget_item); | ||
1001 | |||
994 | static int __init gadget_cfs_init(void) | 1002 | static int __init gadget_cfs_init(void) |
995 | { | 1003 | { |
996 | int ret; | 1004 | int ret; |
diff --git a/drivers/usb/gadget/configfs.h b/drivers/usb/gadget/configfs.h new file mode 100644 index 000000000000..a7b564a913d1 --- /dev/null +++ b/drivers/usb/gadget/configfs.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef USB__GADGET__CONFIGFS__H | ||
2 | #define USB__GADGET__CONFIGFS__H | ||
3 | |||
4 | void unregister_gadget_item(struct config_item *item); | ||
5 | |||
6 | #endif /* USB__GADGET__CONFIGFS__H */ | ||