OSDN Git Service

staging: comedi: ni_labpc_cs: cleanup labpc_cs_attach()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 26 Jan 2013 01:36:50 +0000 (18:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:09:25 +0000 (23:09 -0500)
commitfdcb5fdee2c7ec6327d08f4529da7e1130d0fa63
treef18657bcfb9fa8a11df468d47d8f8e967d70b98a
parent00cefaa56219ac78fa6ece610b0854628a9724aa
staging: comedi: ni_labpc_cs: cleanup labpc_cs_attach()

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

Also, remove the dev_dbg() function trace message.

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_labpc_cs.c