From: Ian Abbott Date: Mon, 3 Dec 2012 18:15:40 +0000 (+0000) Subject: staging: comedi: addi_apci_2032: interrupt safety change X-Git-Tag: v3.9-rc1~127^2~548 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0774c2b5c1e0025cb016393d8552171c0ec55c39;p=pandora-kernel.git staging: comedi: addi_apci_2032: interrupt safety change Put the hardware into a safe state before enabling the interrupt. In the interrupt routine, check the device has been fully configured by checking `dev->attached`. In particular, `dev->read_subdev` could be NULL early on and although the hardware's status register should indicate no interrupt has occurred (since it's been put into a safe state), it's better not to rely on it. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed