ni_mio_cs: I broke support for 2.6.35 when adding support for 2.6.36 due
authorIan Abbott <abbotti@mev.co.uk>
Tue, 9 Nov 2010 12:28:29 +0000 (12:28 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Tue, 9 Nov 2010 12:28:29 +0000 (12:28 +0000)
to using a wrong #ifdef in mio_cs_config().  Sorry!  This fixes it.

comedi/drivers/ni_mio_cs.c

index 887f0781b2e7659f87bf1788f7f0fd8e5939cf63..b032b8cdc2864e2fa2bbf13b7a367e2d51f7e87a 100644 (file)
@@ -519,7 +519,7 @@ static int mio_cs_attach(comedi_device * dev, comedi_devconfig * it)
                return -EIO;
 
        dev->driver = &driver_ni_mio_cs;
-#ifdef CONFIG_COMEDI_HAVE_CS_IRQ_REQ_T
+#ifdef CONFIG_COMEDI_HAVE_CS_IO_REQ_T
        dev->iobase = link->io.BasePort1;
 #else
        dev->iobase = link->resource[0]->start;