staging: comedi: pcmda12: return 0 for successful attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Jun 2013 02:06:21 +0000 (19:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jun 2013 22:35:39 +0000 (15:35 -0700)
Return 0 instead of 1 to indicate a successful attach.

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/pcmda12.c

index 9dfb8546db9b24ed4453f1aeb852a85a3b39179e..8ad24793c2e02c468e61197a920c7c1cd469a24f 100644 (file)
@@ -159,7 +159,7 @@ static int pcmda12_attach(struct comedi_device *dev,
 
        pcmda12_ao_reset(dev, s);
 
-       return 1;
+       return 0;
 }
 
 static struct comedi_driver pcmda12_driver = {