From: H Hartley Sweeten Date: Tue, 26 Jun 2012 00:16:04 +0000 (-0700) Subject: staging: comedi: cb_das16_cs: return '0' for successful attach X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a659643a6b504189e899e56901c760f89eb4bb13;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging: comedi: cb_das16_cs: return '0' for successful attach The comedi core expects a < 0 value during the attach to indicate an error. The normal 'success' return to the kernel is '0' so use that here. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/cb_das16_cs.c b/drivers/staging/comedi/drivers/cb_das16_cs.c index 155f742164fd..c92e23279f9f 100644 --- a/drivers/staging/comedi/drivers/cb_das16_cs.c +++ b/drivers/staging/comedi/drivers/cb_das16_cs.c @@ -513,7 +513,7 @@ static int das16cs_attach(struct comedi_device *dev, dev->driver->driver_name, dev->board_name, dev->iobase, dev->irq); - return 1; + return 0; } static void das16cs_detach(struct comedi_device *dev)