From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:46 +0000 (+0100) Subject: staging: comedi: refactor comedi_free_board_minor() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~302 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24fb134d1c336b263f75d7659f56a96382aebb56;p=pandora-kernel.git staging: comedi: refactor comedi_free_board_minor() Split out the part of `comedi_free_board_minor()` that clears the `comedi_file_info_table[]` element into new function `comedi_clear_minor()`. Split out the remainder of the original function into new function `comedi_free_board_file_info()`. Also re-use a call to `comedi_clear_minor()` in `comedi_free_subdevice_minor()` instead of doing the same thing inline. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed