me4000: In xilinx_download(), correct test for /INIT pin being set during
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 10:59:13 +0000 (10:59 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 10:59:13 +0000 (10:59 +0000)
initialization.  Parentheses were missing.

comedi/drivers/me4000.c

index c865b6157b233d2efe77bbd8803fad9859d10334..5da6e50209ee45c6909c62dfe51417720afa1423 100644 (file)
@@ -782,7 +782,7 @@ static int xilinx_download(comedi_device * dev)
 
        /* Wait until /INIT pin is set */
        udelay(20);
-       if (!inl(info->plx_regbase + PLX_INTCSR) & 0x20) {
+       if (!(inl(info->plx_regbase + PLX_INTCSR) & 0x20)) {
                printk(KERN_ERR
                        "comedi%d: me4000: xilinx_download(): Can't init Xilinx\n",
                        dev->minor);