From: Ian Abbott Date: Wed, 23 Jul 2014 09:41:21 +0000 (+0100) Subject: staging: comedi: ni_65xx: disable edge detection on initialization X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=31adc05f747d1b0669a1a3f7b6db89d592e9e653;p=deliverable%2Flinux.git staging: comedi: ni_65xx: disable edge detection on initialization When the hardware is being initialized, the edge detection interrupts are cleared and disabled. Also disable edge detection for all channels at this time so they start off in a known state. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c index ddf9135d605c..1b8a397ea31e 100644 --- a/drivers/staging/comedi/drivers/ni_65xx.c +++ b/drivers/staging/comedi/drivers/ni_65xx.c @@ -804,6 +804,7 @@ static int ni_65xx_auto_attach(struct comedi_device *dev, } ni_65xx_disable_input_filters(dev); + ni_65xx_disable_edge_detection(dev); return 0; }