From: H Hartley Sweeten Date: Fri, 5 Apr 2013 23:11:13 +0000 (-0700) Subject: staging: comedi: serial2002: return 0 after successful attach X-Git-Tag: next-20130422~28^2~217 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=81c01c3fb8cc38525ee747af85a900c2b9cf818a;p=karo-tx-linux.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c index d367cfb9547d..a596da8ac69a 100644 --- a/drivers/staging/comedi/drivers/serial2002.c +++ b/drivers/staging/comedi/drivers/serial2002.c @@ -806,7 +806,7 @@ static int serial2002_attach(struct comedi_device *dev, s->range_table = NULL; s->insn_read = serial2002_encoder_insn_read; - return 1; + return 0; } static void serial2002_detach(struct comedi_device *dev)