From: H Hartley Sweeten Date: Tue, 9 Apr 2013 23:05:54 +0000 (-0700) Subject: staging: comedi: drivers: introduce comedi_request_region() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~183 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f375ac5f197d32aeffe5436e5864525cc14ce44a;p=pandora-kernel.git staging: comedi: drivers: introduce comedi_request_region() Introduce a helper function to handle the request_region() for legacy comedi drivers. As pointed out by Ian Abbott, legacy devices are configured manually with the "comedi_config" program. The error messages are useful diagnostics when trying to attach to these boards. Providing a helper function allows consolidating the error messages in the drivers and providing a consistent format for the errors. This helper also sets the dev->iobase automatically for the driver if the request_region() is successful. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed