From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:06:51 +0000 (-0700) Subject: staging: comedi: ni_65xx: filter interval register is 32-bit X-Git-Tag: v3.17-rc1~123^2~712 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16b2a37895ee553f7da2e1a4027d33d1ebe7b032;p=karo-tx-linux.git staging: comedi: ni_65xx: filter interval register is 32-bit According to the register programming manual, the filter interval register is 32-bit. Fix the writes to this register. Signed-off-by: H Hartley Sweeten Reviewed-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 d6c11405ebc0..292355b24994 100644 --- a/drivers/staging/comedi/drivers/ni_65xx.c +++ b/drivers/staging/comedi/drivers/ni_65xx.c @@ -299,7 +299,7 @@ static int ni_65xx_config_filter(struct comedi_device *dev, data[1] = interval * filter_resolution_ns; if (interval != devpriv->filter_interval) { - writeb(interval, devpriv->mmio + Filter_Interval); + writel(interval, devpriv->mmio + Filter_Interval); devpriv->filter_interval = interval; } @@ -689,7 +689,7 @@ static int ni_65xx_auto_attach(struct comedi_device *dev, writeb(0x00, devpriv->mmio + Master_Interrupt_Control); /* Set filter interval to 0 (32bit reg) */ - writeb(0x00000000, devpriv->mmio + Filter_Interval); + writel(0x00000000, devpriv->mmio + Filter_Interval); ret = request_irq(dev->irq, ni_65xx_interrupt, IRQF_SHARED, "ni_65xx", dev);