staging: comedi: ni_670x: return '0' for successful attach
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 30 Jun 2012 00:38:54 +0000 (17:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:46:06 +0000 (15:46 -0700)
commit464c94514c703bc61c3f85db397582aa8f17cf9d
tree3588dba0ea7213040fa8ec99e2d55e13c3588faf
parentb48ad330d56a6cce7897132d9cb68cc2f19358e8
staging: comedi: ni_670x: return '0' for successful attach

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>
drivers/staging/comedi/drivers/ni_670x.c