diff options
| author | 2013-04-09 16:32:43 -0700 | |
|---|---|---|
| committer | 2013-04-11 12:47:54 -0700 | |
| commit | dba89b14d44d463c33c3f49384475bd1316fe28a (patch) | |
| tree | b9b4a68c1710deeac7934f7246003a835e59e13b /tools/lib/python/kdoc/python_version.py | |
| parent | staging: comedi: comedi_parport: use comedi_request_region() (diff) | |
staging: comedi: unionxx5: refactor subdevice init
Change the parameters passed to __unioxx5_subdev_init(), we need
the comedi_device pointer to call __comedi_request_region() and
the 'minor' is only used in some kernel noise so remove it. Rename
the parameters 'subdev' and 'subdev_iobase' to simply 's' and
'iobase'.
Use __comedi_request_region() to request the I/O region needed by
the subdevice. Remove the attach noise as well as the error message
when the request_region() fails, comedi_request_reqion() will output
the error message if necessary.
Return -ENOMEM is the kzalloc fails instead of -1.
Fix unioxx5_attach() to use the new parameters to __unioxx5_subdev_init().
Pass on any error codes instead of -1.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
