From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:44 +0000 (-0700) Subject: staging: comedi: pcl816: clarify 'irq_was_now_closed' flag in private data X-Git-Tag: v3.15-rc1~139^2~659 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf0f32bafd92afaffca4f086be2a49ad526dfd3;p=pandora-kernel.git staging: comedi: pcl816: clarify 'irq_was_now_closed' flag in private data This flag in the private data is set when an async command is canceled with the ai (*cancel) operation. Rename the flag to 'ai_cmd_canceled' to clarify its use. Move the check for the flag in the interrupt handler. If the async command was canceled there is no reason to handle the interrupt. Just clear interrupt and return. Also, make sure to clear the interrupt when the device is not attached. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed