From: Chase Southwood Date: Thu, 3 Jul 2014 02:17:21 +0000 (-0500) Subject: staging: comedi: addi_apci_1564: clean up apci1564_interrupt() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1152 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b11771aa4c22074df2b804c02433c5357514f5c5;p=pandora-kernel.git staging: comedi: addi_apci_1564: clean up apci1564_interrupt() Remove the checks for interrupts from unknown sources. This situation should never occur and the checks were doing nothing to help the situation. Also, the portion of the function for handling counter interrupts is reapeated four times (once for each counter), but is completely identical save for the register is is accessing, so we can handle all four counters with a for loop. Finally, the interrupt handler is incorrectly setting and then checking devpriv->timer_select_mode before processing some of the triggered interrupts, so just remove all occurrences of this. Signed-off-by: Chase Southwood Cc: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed