drivers/base: Convert dev->sem to mutex
The semaphore is semantically a mutex. Convert it to a real mutex and fix up a few places where code was relying on semaphore.h to be included by device.h, as well as the users of the trylock function, as that value is now reversed. Signed-off-by:Thomas Gleixner <tglx@linutronix.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- drivers/base/core.c 1 addition, 2 deletionsdrivers/base/core.c
- drivers/net/mlx4/mlx4.h 1 addition, 0 deletionsdrivers/net/mlx4/mlx4.h
- drivers/staging/comedi/drivers/quatech_daqp_cs.c 1 addition, 0 deletionsdrivers/staging/comedi/drivers/quatech_daqp_cs.c
- drivers/usb/core/usb.c 1 addition, 1 deletiondrivers/usb/core/usb.c
- include/linux/device.h 4 additions, 5 deletionsinclude/linux/device.h
Please register or sign in to comment