Skip to content

Commit

Permalink
staging: comedi: pcmda12: return 0 for successful attach
Browse files Browse the repository at this point in the history
Return 0 instead of 1 to indicate a successful attach.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: 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 Jun 5, 2013
1 parent 7af94fe commit 1716450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int pcmda12_attach(struct comedi_device *dev,

pcmda12_ao_reset(dev, s);

return 1;
return 0;
}

static struct comedi_driver pcmda12_driver = {
Expand Down

0 comments on commit 1716450

Please sign in to comment.