staging: comedi: amplc_dio200: dio200_common_attach() return 0
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Mar 2013 17:19:03 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:30:05 +0000 (11:30 -0700)
commit01d03a93f277d741ecfb744531215cd12fadf591
treeec07f2181a98a1f305c35ac6e8bf8c424ae3a250
parentadd873f29c6ed2c797208b861a99d992172b9495
staging: comedi: amplc_dio200: dio200_common_attach() return 0

Change the successful return value of `dio200_common_attach()` from 1 to
0.  This is propagated as the return value from the driver's "attach"
(`dio200_attach()`) or "auto_attach" (`dio200_auto_attach()`) handler.
Any non-negative value will do, but 0 is more conventional than 1.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c