From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:30:59 +0000 (-0700) Subject: staging: comedi: pcmmio: introduce pcmmio_dio_write() X-Git-Tag: v3.14-rc1~150^2~319 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4edac4a4da158869bb41392939f3933bf8f8d46d;p=pandora-kernel.git staging: comedi: pcmmio: introduce pcmmio_dio_write() The paged registers in the asic need to be spinlock protected to ensure that the page is not changed while writing to the registers. Introduce a helper function to make sure the spinlock is used. Use the new helper in pcmmio_reset(). This is one of the places where the spinlock is not used. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed