diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2012-10-23 04:33:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-23 22:58:07 -0400 |
commit | 036546bf950b7916dcc051eb0d450e23028b487a (patch) | |
tree | e66c9cdc9fa1f5640a2d6324cc850cda73c1bd39 /drivers/usb | |
parent | 197ef5ef37d91686545872703bb6d756a53898ea (diff) |
usb hub: use flush_work instead of flush_work_sync
flush_work_sync and flush_work are now the same and flush_work_sync
has been deprecated. This fixes the following warning:
drivers/usb/core/hub.c: In function hub_quiesce:
drivers/usb/core/hub.c:1216:3: warning: flush_work_sync is deprecated (declared at include/linux/workqueue.h:448) [-Wdeprecated-declarations]
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 1181e917fec7..1af04bdeaf0c 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -1213,7 +1213,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type) | |||
1213 | if (hub->has_indicators) | 1213 | if (hub->has_indicators) |
1214 | cancel_delayed_work_sync(&hub->leds); | 1214 | cancel_delayed_work_sync(&hub->leds); |
1215 | if (hub->tt.hub) | 1215 | if (hub->tt.hub) |
1216 | flush_work_sync(&hub->tt.clear_work); | 1216 | flush_work(&hub->tt.clear_work); |
1217 | } | 1217 | } |
1218 | 1218 | ||
1219 | /* caller has locked the hub device */ | 1219 | /* caller has locked the hub device */ |