From: H Hartley Sweeten Date: Tue, 9 Apr 2013 23:30:11 +0000 (-0700) Subject: staging: comedi: drivers: refactor comedi_request_region() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca8b296409c9800923fd431af15345e4da872bc0;p=pandora-kernel.git staging: comedi: drivers: refactor comedi_request_region() Split comedi_request_region() into two helper functions. __comedi_request_region() Handles the actual request_region() call. comedi_request_region() Calls __comedi_request_region() and then sets dev->iobase if the request was successful. This allows drivers to use the __comedi_request_region() helper to handle the request without setting the dev->iobase. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed