]> git.baikalelectronics.ru Git - kernel.git/commit
staging: serqt_usb2: don't use sleep_on
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Jan 2014 12:07:33 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 18:41:44 +0000 (10:41 -0800)
commitb61b65dca8f72698428d14de6b3d1508d3b0eae9
treebbb43c138b67251193db1e8d1df92628d0b6dddb
parentd7747a9c8992a7b08ac4e0274c88e3e6a35166fc
staging: serqt_usb2: don't use sleep_on

sleep_on and related functions are going away and should not be used
in this driver any more.

This removes the call to interruptible_sleep_on for a wait queue that
is never woken up, and replaces an interruptible_sleep_on_timeout
call with the equivalent wait_event_interruptible_timeout() to
avoid a small race.

Both call sites still look fishy and need more work.

Signed-off-by: Arnd Bergmann <arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/serqt_usb2/serqt_usb2.c