staging: comedi: quatech_daqp_cs: cleanup daqp_cs_attach()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 25 Jan 2013 21:59:56 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:06:40 +0000 (23:06 -0500)
commitcdcc02291bea28b85b81230cb9bd328ab7a3cb35
tree1d23e04db373fc63fbc74c877598236c824d23a6
parent86be5680f5804690654519751ed77aaa54b01826
staging: comedi: quatech_daqp_cs: cleanup daqp_cs_attach()

Absorb the code from daqp_cs_config() into this function and
properly return the error if the configuration fails.

Remove the dev_dbg() function trace messages.

Fix the kzalloc(). The preferred form for passing a size of a struct
is:

p = kzalloc(sizeof(*p), ...);

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