staging: comedi: drivers: propogate errno from subdev_8255_init()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 3 Feb 2014 17:43:25 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 18:49:19 +0000 (10:49 -0800)
commite6439a458aa2805f05dd5fb3da8a95fd90082728
tree5f19477f7b87886978b2ab77774b3ae66553311a
parent52a1c19d8b7e31a77abec00658fd3c1ddcf0eb04
staging: comedi: drivers: propogate errno from subdev_8255_init()

The initialization of the 8255 subdevice can fail due to the allocation
of the private data. Make sure all callers of subdev_8255_init() propogate
the errno.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci_dio.c
drivers/staging/comedi/drivers/cb_pcidas64.c
drivers/staging/comedi/drivers/cb_pcimdas.c
drivers/staging/comedi/drivers/das08.c
drivers/staging/comedi/drivers/ni_atmio16d.c
drivers/staging/comedi/drivers/ni_mio_common.c
drivers/staging/comedi/drivers/pcm3724.c