staging: comedi: ni_daq_dio24: add back missing 'if (ret)'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 7 Feb 2013 20:27:10 +0000 (13:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2013 21:59:26 +0000 (13:59 -0800)
commit37fa328f066dc38bf58337b6488232c8cefe37f3
tree16f75fabd29dba1f0d72d642ba388bc28036b1bd
parentd51d45da3e49262f932ca4567bd39b08b94ebf9f
staging: comedi: ni_daq_dio24: add back missing 'if (ret)'

The 'if (ret)' after calling comedi_pcmcia_enable() was accidentally
removed in:

Commit: 573a964882065f9b2cb71db8a225ba067b4b5b7a
staging: comedi: ni_daq_dio24: use comedi_pcmcia_{enable,disable}

Put if back so that dio24_auto_attach() can finish attaching to
the board after enabling the pcmcia device.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_daq_dio24.c