linux-hardened/drivers/staging/comedi
Ian Abbott 3c17ba0743 Staging: comedi: Allow 'open' driver method to fail
Some comedi drivers should return an error from their 'open' method when
something goes wrong.  Change the prototype of the 'open' method in
'struct comedi_device' to allow this, and change the drivers that use it.
Propagate any error to the 'open' file operation.

The corresponding 'close' method won't be called when the 'open' method
fails, so drivers failing the 'open' need to clean up any mess they
created.

The dt9812 and serial2002 drivers can now return an error on 'open'.
The jr3_pci driver also uses the 'open' method but doesn't fail it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-17 13:28:56 -07:00
..
drivers Staging: comedi: Allow 'open' driver method to fail 2010-06-17 13:28:56 -07:00
kcomedilib Staging: comedi: new Kconfig and Makefiles, drivers grouped by bustype. 2010-05-18 14:23:12 -07:00
comedi.h Staging: comedi: Fixed more long line lengths in comedi.h 2010-05-14 13:53:19 -07:00
comedi_compat32.c Staging: comedi: range.c: properly mark up __user pointers 2010-05-11 11:36:03 -07:00
comedi_compat32.h Staging: comedi: remove check for HAVE_COMPAT_IOCTL 2009-12-11 12:23:01 -08:00
comedi_fops.c Staging: comedi: Allow 'open' driver method to fail 2010-06-17 13:28:56 -07:00
comedi_fops.h Staging: comedi: fix up remaining coding style issue in proc.c 2010-05-11 11:35:58 -07:00
comedidev.h Staging: comedi: Allow 'open' driver method to fail 2010-06-17 13:28:56 -07:00
comedilib.h Staging: comedi: kcomedilib: make it typesafe 2010-05-11 11:36:02 -07:00
drivers.c Staging: comedi: Fixed printk call lengths and log levels 2010-05-11 11:36:18 -07:00
internal.h Staging: comedi: drivers.c sparse cleanup 2010-05-11 11:36:03 -07:00
Kconfig Staging: comedi: fixing ni_labpc to mite dependancy 2010-06-04 13:38:57 -07:00
Makefile Staging: comedi: remove comedi_ksyms.c 2010-05-11 11:36:00 -07:00
proc.c Staging: comedi: clean up sparse issues in proc.c 2010-05-11 11:36:03 -07:00
range.c Staging: comedi: range.c: properly mark up __user pointers 2010-05-11 11:36:03 -07:00
TODO Staging: comedi: David doesn't want to get comedi patches 2009-05-08 19:39:28 -07:00