]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: pcmuio: return 0 for successful attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 18 Jun 2013 20:26:59 +0000 (13:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:51:05 +0000 (15:51 -0700)
Returning 0 for success is more common.

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

index 46def3b402da5f1c8f0d62f1ee87944f28e85ec0..bc969d24d1a3165e27bc32bd514a2e8123a1cb97 100644 (file)
@@ -672,7 +672,7 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                devpriv->asics[asic].irq = irq[asic];
        }
 
-       return 1;
+       return 0;
 }
 
 static void pcmuio_detach(struct comedi_device *dev)