staging: comedi: serial2002: return 0 after successful attach
A return value of >=0 indicates a successful attach to the comedi core. Return 0 since that is more common in the kernel. 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>
This commit is contained in:
parent
8399965210
commit
81c01c3fb8
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ static int serial2002_attach(struct comedi_device *dev,
|
||||||
s->range_table = NULL;
|
s->range_table = NULL;
|
||||||
s->insn_read = serial2002_encoder_insn_read;
|
s->insn_read = serial2002_encoder_insn_read;
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void serial2002_detach(struct comedi_device *dev)
|
static void serial2002_detach(struct comedi_device *dev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue