From: H Hartley Sweeten Date: Mon, 29 Oct 2012 17:02:39 +0000 (-0700) Subject: staging: comedi: rtd520: factor out the board reset X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~861 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09d93a189ef5f0b90ad8d7cf1d01bfe6cae711b6;p=pandora-kernel.git staging: comedi: rtd520: factor out the board reset Factor the common code that does the low-level reset of the board out of rtd_init_board() and rtc_detach(). Fix the if test in rtd_detach() before doing the reset, devpriv->lcfg could be NULL at this point. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed