From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:31:03 +0000 (-0700) Subject: staging: comedi: pcmmio: simplify pcmmio_stop_intr() X-Git-Tag: v3.14-rc1~150^2~315 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29947fd6310292ce81d1ea4e0b56978a4a921b19;p=pandora-kernel.git staging: comedi: pcmmio: simplify pcmmio_stop_intr() This function is only called by the interrupt subdevice so the sanity check of the 'asic' is not necessary. Remove it. The 'nports' is always 3 and the 'firstport' is always 0. Remove the for () loop that clears the registers to disable the interrupts and just use the pcmmio_dio_write() helper to write to the three page registers. This also fixes a bug where the write to the page registers is not protected with the spinlock. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed