staging: comedi: quatech_daqp_cs: cleanup subdevice init
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 25 Jan 2013 22:02:28 +0000 (15:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:06:41 +0000 (23:06 -0500)
commitb7c0afa4b68c7b1cacaa4511721347682f7e1558
tree52ecd32cb50d02d893d63a71d91be118c40106cf
parentc65c64d0f0b269b1239fdce253fd4717281cc98d
staging: comedi: quatech_daqp_cs: cleanup subdevice init

Remove the dev_info() board attach noise.

For aesthetic reasons, add some whitespace to the subdevice init.

Remove the init of the s->len_chanlist for the subdevices that do
not support commands. It's not used by them and the comedi core
will handle initializing it properly in the postconfig.

Change the return after a successful attach to "0". The comedi
core expects a < 0 value to indicate an error and "0" is the
typical value returned to indicate success.

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/quatech_daqp_cs.c