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 46def3b..bc969d2 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)