From: H Hartley Sweeten Date: Tue, 14 May 2013 21:27:39 +0000 (-0700) Subject: staging: comedi: dt9812: move the sempaphore used by the comedi_driver X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~621 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb5a0a8ca5a9ee145c9c586083c63bff711c66d1;p=pandora-kernel.git staging: comedi: dt9812: move the sempaphore used by the comedi_driver The semaphore in the struct slot_dt9812 is used by the comedi_driver when reading and writing to the usb device. It has no real association with the 'slot'. The 'slot' is protected with a static semaphore in the driver. Move the semaphore into the comedi_device private data and initialize it after the private data is allocated. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed