From: H Hartley Sweeten Date: Thu, 5 Dec 2013 23:54:04 +0000 (-0700) Subject: staging: comedi: pcmuio: spinlock protect pcmuio_{write, read}() X-Git-Tag: v3.14-rc1~150^2~516 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=099ec87df0ff7c2c66173876a9b8910aafb7ca39;p=pandora-kernel.git staging: comedi: pcmuio: spinlock protect pcmuio_{write, read}() Currently only the pcmuio_handle_asic_interrupt() function uses the spinlock in the private data to protect the read of the paged interrupt id registers. All accesses to the paged registers should be protected to ensure that the page is not changed until the access is complete. Move the lock/unlock into the pcmuio_{write,read}() functions to make sure the access completes correctly. Rename the spinlock to variable to clarify its use. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed