diff options
Diffstat (limited to 'drivers/usb/gadget/mass_storage.c')
-rw-r--r-- | drivers/usb/gadget/mass_storage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mass_storage.c b/drivers/usb/gadget/mass_storage.c index 2b11e2079823..306098f2d924 100644 --- a/drivers/usb/gadget/mass_storage.c +++ b/drivers/usb/gadget/mass_storage.c | |||
@@ -143,6 +143,9 @@ static int msg_thread_exits(struct fsg_common *common) | |||
143 | 143 | ||
144 | static int __init msg_do_config(struct usb_configuration *c) | 144 | static int __init msg_do_config(struct usb_configuration *c) |
145 | { | 145 | { |
146 | static const struct fsg_operations ops = { | ||
147 | .thread_exits = msg_thread_exits, | ||
148 | }; | ||
146 | static struct fsg_common common; | 149 | static struct fsg_common common; |
147 | 150 | ||
148 | struct fsg_common *retp; | 151 | struct fsg_common *retp; |
@@ -155,7 +158,7 @@ static int __init msg_do_config(struct usb_configuration *c) | |||
155 | } | 158 | } |
156 | 159 | ||
157 | fsg_config_from_params(&config, &mod_data); | 160 | fsg_config_from_params(&config, &mod_data); |
158 | config.thread_exits = msg_thread_exits; | 161 | config.ops = &ops; |
159 | 162 | ||
160 | retp = fsg_common_init(&common, c->cdev, &config); | 163 | retp = fsg_common_init(&common, c->cdev, &config); |
161 | if (IS_ERR(retp)) | 164 | if (IS_ERR(retp)) |