From: H Hartley Sweeten Date: Tue, 4 Jun 2013 02:06:21 +0000 (-0700) Subject: staging: comedi: pcmda12: return 0 for successful attach X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=171645048b0ddc79c9cca7631ee37f5c82dab1a7;p=linux-beck.git 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 --- 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 = {