From: Ian Abbott Date: Mon, 24 Sep 2012 15:27:59 +0000 (+0100) Subject: staging: comedi: ni_mio_common: always lock in ni_ai_poll() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd73bc1cf59b2c9232d9889ba2b148e262054b6;p=pandora-kernel.git staging: comedi: ni_mio_common: always lock in ni_ai_poll() `ni_ai_poll()` currently acquires (and later releases) the comedi device's spin-lock iff `in_interrupt()` returns 0. However, it is only called during processing of a `COMEDI_POLL` ioctl so `in_interrupt()` will always return 0 in this case. Remove this test and acquire/release the spin-lock unconditionally. This eliminates a sparse warning about different lock contexts for basic block. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed