From: H Hartley Sweeten Date: Fri, 30 Nov 2012 01:20:50 +0000 (-0700) Subject: staging: comedi: addi_apci_2032: remove the timer s->range_table X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c7c42cdf6b1968da6588de97c4978ce602b5d34;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: addi_apci_2032: remove the timer s->range_table The timer subdevice does not have a digital range. Its range of 0 to 0xff is the value used to set the reload timer. Remove the setting of s->range_table. The comedi core will then set it to range_unknown. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_2032.c b/drivers/staging/comedi/drivers/addi_apci_2032.c index fded4806548f..da0c8ca05ea5 100644 --- a/drivers/staging/comedi/drivers/addi_apci_2032.c +++ b/drivers/staging/comedi/drivers/addi_apci_2032.c @@ -281,7 +281,6 @@ static int apci2032_auto_attach(struct comedi_device *dev, s->subdev_flags = SDF_WRITEABLE; s->n_chan = 1; s->maxdata = 0xff; - s->range_table = &range_digital; s->insn_write = apci2032_wdog_insn_write; s->insn_read = apci2032_wdog_insn_read; s->insn_config = apci2032_wdog_insn_config;