]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: me_daq: pass on the error from comedi_pci_enable()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 25 Oct 2012 22:06:37 +0000 (15:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:20:01 +0000 (09:20 -0700)
commit4ae76422338f25ee4907e92ae3cdc968fdd9b578
tree93837732b5df8876712a04602f67ecc3606d20d7
parent4bb153b4e4f9e11ac7e9b58d3957dba9a3c3fd2e
staging: comedi: me_daq: pass on the error from comedi_pci_enable()

Instead of returning -EIO when comedi_pci_enable() fails, pass on
the actual error code. Also, remove the kernel noise when the
function fails.

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/me_daq.c