From 171645048b0ddc79c9cca7631ee37f5c82dab1a7 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 3 Jun 2013 19:06:21 -0700 Subject: [PATCH] staging: comedi: pcmda12: return 0 for successful attach Return 0 instead of 1 to indicate a successful attach. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- 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 9dfb8546db9b..8ad24793c2e0 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 = {