From: H Hartley Sweeten Date: Fri, 25 Jan 2013 21:59:56 +0000 (-0700) Subject: staging: comedi: quatech_daqp_cs: cleanup daqp_cs_attach() X-Git-Tag: v3.9-rc1~127^2~271 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdcc02291bea28b85b81230cb9bd328ab7a3cb35;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed