]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das1800: use __comedi_request_region()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 10 Apr 2013 17:03:59 +0000 (10:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:52:35 +0000 (12:52 -0700)
commitcb3fd76278dbb9230980cf41adf97e58e2f2d2fc
tree11455d5e253fa2a26c35e0123ff78ab9a79aeb97
parent2f835c34a87f228c2f69f169fdd56a8ce57fb2bb
staging: comedi: das1800: use __comedi_request_region()

Use __comedi_request_region() to request the additional I/O region
used by this driver.

Remove the error message when the request_region() fails,
comedi_request_reqion() will output the error message if necessary.

For aesthetic reasons, rename the local variable 'retval' to
simply 'ret'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das1800.c