staging: comedi: aio_aio12_8: fix i/o region size
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 20 Aug 2012 18:29:16 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:26:16 +0000 (11:26 -0700)
This board has jumpers to set the board base address. These
jumpers are marked A5 through A9 and A5 is the least significant
bit of the address. This makes the address reqion for the board
32 bytes not 24.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/aio_aio12_8.c

index 46ef41a6e6ffa2a522596d354158502241b8e8a4..c07de3e00e487209daaf605a61c5ceb9ddf4132e 100644 (file)
@@ -206,7 +206,7 @@ static int aio_aio12_8_attach(struct comedi_device *dev,
        dev->board_name = board->name;
 
        iobase = it->options[0];
-       if (!request_region(iobase, 24, dev->board_name)) {
+       if (!request_region(iobase, 32, dev->board_name)) {
                printk(KERN_ERR "I/O port conflict");
                return -EIO;
        }
This page took 0.024799 seconds and 5 git commands to generate.