usb: Modify mass_storage gadget to work with configfs
This commit is contained in:
parent
865bcc3e46
commit
27caa8eaba
|
@ -4075,6 +4075,8 @@ static void fsg_free_inst(struct usb_function_instance *fi)
|
|||
kfree(opts);
|
||||
}
|
||||
|
||||
extern struct device *create_function_device(char *name);
|
||||
|
||||
static struct usb_function_instance *fsg_alloc_inst(void)
|
||||
{
|
||||
struct fsg_opts *opts;
|
||||
|
@ -4124,6 +4126,9 @@ static struct usb_function_instance *fsg_alloc_inst(void)
|
|||
|
||||
config_group_init_type_name(&opts->func_inst.group, "", &fsg_func_type);
|
||||
|
||||
//create dummy device
|
||||
create_function_device("f_mass_storage");
|
||||
|
||||
return &opts->func_inst;
|
||||
|
||||
release_buffers:
|
||||
|
|
Loading…
Reference in New Issue
Block a user