[PATCH 10/11] staging: comedi: pcmda12: return 0 for successful attach

H Hartley Sweeten hsweeten at visionengravers.com
Tue Jun 4 02:06:21 UTC 2013


Return 0 instead of 1 to indicate a successful attach.

Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Cc: Ian Abbott <abbotti at mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 drivers/staging/comedi/drivers/pcmda12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c
index 9dfb854..8ad2479 100644
--- a/drivers/staging/comedi/drivers/pcmda12.c
+++ b/drivers/staging/comedi/drivers/pcmda12.c
@@ -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 = {
-- 
1.8.1.4




More information about the devel mailing list