From: H Hartley Sweeten Date: Mon, 10 Aug 2015 20:13:59 +0000 (-0700) Subject: staging: comedi: comedi_fops: absorb comedi_free_board_minor() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be8ae5898af956560e9f722b327add05574a1f7;p=pandora-kernel.git staging: comedi: comedi_fops: absorb comedi_free_board_minor() This function is only called by comedi_cleanup_board_minors() and the 'minor' parameter will always be < COMEDI_NUM_BOARD_MINORS. For aesthetics, absorb the function and remove the unnecessary BUG_ON(). Split the comedi_clear_board_minor() out to clarify that the return value is a comedi_device pointer. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed