aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-25 17:16:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-26 15:30:54 -0700
commita659643a6b504189e899e56901c760f89eb4bb13 (patch)
tree1fa2f3699e8223925514c08fb0a3dc2abc9bd935
parentstaging: comedi: cb_das16_cs: consolidate the attach messages (diff)
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/cb_das16_cs.c2
1 files changed, 1 insertions, 1 deletions
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)