diff options
| author | 2016-08-22 10:09:42 +0530 | |
|---|---|---|
| committer | 2016-09-01 17:44:01 +0200 | |
| commit | 5c2ba8b85e350678b96db57cc8972deb9e47c497 (patch) | |
| tree | 053419b13cedc5b4c9883c34375eceea59864d17 /scripts/patch-kernel | |
| parent | staging: android: ion: ion.c fix parenthesis alignment (diff) | |
rtl8712: pwrctrl_priv: Replace semaphore lock with mutex
The semaphore 'lock' in 'pwrctrl_priv' is used as a simple mutex, so it
should be written as one. Semaphores are going away in the future.
_enter_pwrlock was using down_interruptible(), so the lock could be broken
by sending a signal. This could be a bug, because nothing checks the return
code here. Hence, using mutex_lock instead of the interruptible version.
Removing the now unused _enter_pwrlock and _down_sema.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
