From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:50 +0000 (+0100) Subject: staging: comedi: change comedi_alloc_board_minor() to return pointer X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~298 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7638ffcb50903d9ddbf605c7e9578d72658a960a;p=pandora-kernel.git staging: comedi: change comedi_alloc_board_minor() to return pointer Change `comedi_alloc_board_minor()` to return a pointer to the allocated `struct comedi_device` instead of a minor device number. Return an `ERR_PTR()` value on error instead of a negative error number. This saves a call to `comedi_dev_from_minor()` in `comedi_auto_config()`. Also change it to use a local variable `dev` to hold the pointer to the `struct comedi_device` instead of using `info->device` all the time. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed