]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/base: Convert dev->sem to mutex
authorThomas Gleixner <tglx@linutronix.de>
Fri, 29 Jan 2010 20:39:02 +0000 (20:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:30 +0000 (09:37 -0700)
commitef19314ae1ec0815e7856dfc5fe232506a0878ea
tree292a6e3a21e237789c91a8d0ccd021321990a265
parent863ee1c20d3945f82e520658f4efd9b7844472f8
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>
drivers/base/core.c
drivers/net/mlx4/mlx4.h
drivers/staging/comedi/drivers/quatech_daqp_cs.c
drivers/usb/core/usb.c
include/linux/device.h