staging: comedi: cb_pcimdda: cleanup the 8255 subdevice init
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:50:01 +0000 (19:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:17:34 +0000 (08:17 -0700)
commitce774eab13606610df53301897e9c003476d7c6c
treeedc05e40898c0e1f766d0e3d7cd4432b75def33a
parent8b00a2f801866bd89a70f082cd0f322c7019d476
staging: comedi: cb_pcimdda: cleanup the 8255 subdevice init

The dio_registers variable in the private data is only used to
pass the base address to the 8255 subdevice. Remove the variable
from the private data and pass the value directly to the
subdev_8255_init() function.

Make sure to check the return from subdev_8255_init(). That
function can fail. For aesthetic reasons, rename the local
variable 'err' to '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/cb_pcimdda.c