From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:12:51 +0000 (-0700) Subject: staging: comedi: dt282x: factor board initialization out of (*attach) X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1534 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4af8d4991bd3575d8eb54b08d78fb0e498b8ec8;p=pandora-kernel.git staging: comedi: dt282x: factor board initialization out of (*attach) For aesthetics, factor the code that initializes the then checks to see if it is actually a DT2821 series board out of the (*attach). For clarity, remove the MASK and VAL defines used to check the board and jsut open code the values. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed