staging: comedi: cb_pcidda: check for subdev_8255_init() failure
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 24 Oct 2012 23:31:14 +0000 (16:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 02:35:49 +0000 (19:35 -0700)
commit618351aed1dc9b0340bc755ffc0dba6caf190299
treed1226709732718ed37ac9a6ef3432782f81f4918
parent2730c736d99c766c6e6c7674c4be53fb0f9d3315
staging: comedi: cb_pcidda: check for subdev_8255_init() failure

The subdev_8255_init() can fail, make sure to check for it.

This board has two 8255 subdevices, one at iobase PCI bar2 and one
at iobase PCI bar2 + 4. Init the subdevices using a for() loop to
make the code a bit more concise.

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_pcidda.c