aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index df5dc186aef5..be4cd8fe4ce6 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -236,7 +236,7 @@ static void storage_pre_reset(struct usb_interface *iface)
236 mutex_lock(&us->dev_mutex); 236 mutex_lock(&us->dev_mutex);
237} 237}
238 238
239static void storage_post_reset(struct usb_interface *iface) 239static void storage_post_reset(struct usb_interface *iface, int reset_resume)
240{ 240{
241 struct us_data *us = usb_get_intfdata(iface); 241 struct us_data *us = usb_get_intfdata(iface);
242 242
@@ -249,7 +249,11 @@ static void storage_post_reset(struct usb_interface *iface)
249 249
250 /* FIXME: Notify the subdrivers that they need to reinitialize 250 /* FIXME: Notify the subdrivers that they need to reinitialize
251 * the device */ 251 * the device */
252 mutex_unlock(&us->dev_mutex); 252
253 /* If this is a reset-resume then the pre_reset routine wasn't
254 * called, so we don't need to unlock the mutex. */
255 if (!reset_resume)
256 mutex_unlock(&us->dev_mutex);
253} 257}
254 258
255/* 259/*