diff options
| author | 2013-04-04 14:58:51 +0100 | |
|---|---|---|
| committer | 2013-04-05 14:33:17 -0700 | |
| commit | 07778393d9a8dbc4b9306d20a8ecfe053771ba93 (patch) | |
| tree | 85dfeee58a70d808b837a30e5112ccdaa7fe2b82 /scripts/Makefile.thinlto | |
| parent | staging: comedi: change comedi_alloc_board_minor() to return pointer (diff) | |
staging: comedi: pre-lock mutex on creation of comedi device
Return from `comedi_alloc_board_minor()` with the mutex of the created
`struct comedi_device` pre-locked. This allows further initialization
by the caller without the worry of something getting in there first.
`comedi_auto_config()` no longer needs to check if the device is already
"attached" since whatever was trying to attach the device would need to
have locked the mutex first.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
