From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:51 +0000 (+0100) Subject: staging: comedi: pre-lock mutex on creation of comedi device X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~297 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07778393d9a8dbc4b9306d20a8ecfe053771ba93;p=pandora-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed