Skip to content

Commit

Permalink
staging: comedi: adl_pci6208: return '0' for successful attach
Browse files Browse the repository at this point in the history
The comedi core expects a < 0 value during the attach to indicate
an error. The normal 'success' return for the kernel is '0' so use
that here.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 111b62e commit 98bcf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/adl_pci6208.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static int pci6208_attach(struct comedi_device *dev,
dev_info(dev->class_dev, "%s: %s, I/O base=0x%04lx\n",
dev->driver->driver_name, dev->board_name, dev->iobase);

return 1;
return 0;
}

static void pci6208_detach(struct comedi_device *dev)
Expand Down

0 comments on commit 98bcf91

Please sign in to comment.