staging: comedi: dt2801: fix access to 2nd dio subdevice
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:39:13 +0000 (18:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:03:55 +0000 (20:03 -0700)
commit52a07cde495ccca9212b3f725b606c75e8d89a2e
tree73d466a1fbb41fafcebb6d55beec7ec6bcc842c1
parent2930d0ba656d035d01a2cac37b6fe1250df16c28
staging: comedi: dt2801: fix access to 2nd dio subdevice

Only 4 subdevices are allocated by this driver. The 2nd dio
subdevice is 'dev->subdevice + 3' not '... + 4'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2801.c