linux-sg2042/drivers/staging/comedi
H Hartley Sweeten fb60367d5d staging: comedi: register sysfs device attributes with driver core
Currently the sysfs device attributes are created by the comedi
core after each comedi device is created. This can lead to a race
condition where userspace gets an add event before the files are
created.

Register the device attributes with the comedi class so that the
driver core handles creating them and we avoid the race.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-14 13:00:55 -07:00
..
drivers staging: comedi: rtf520: las0, las1, and lcfg are void __iomem * 2012-05-09 13:36:27 -07:00
kcomedilib Staging: comedi: kcomedilib: fix coding style issues in kcomedilib_main.c 2010-07-08 13:15:16 -07:00
Kconfig staging: comedi: Add kernel config for default buffer sizes 2012-04-13 11:18:23 -07:00
Makefile Staging: comedi: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:52 -07:00
TODO Staging: comedi: Remove typedefs 2010-06-17 13:49:07 -07:00
comedi.h staging: comedi: COMEDI_CB_EOA is also used to report end-of-output. 2012-04-18 16:37:06 -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: register sysfs device attributes with driver core 2012-05-14 13:00:55 -07:00
comedi_fops.h module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
comedidev.h staging: comedi: Add helper macro for comedi_driver boilerplate 2012-05-02 15:55:24 -07:00
comedilib.h Staging: comedi: kcomedilib: make it typesafe 2010-05-11 11:36:02 -07:00
drivers.c staging: comedi: Add module parameters for default buffer size 2012-04-13 11:18:23 -07:00
internal.h staging: comedi: Add module parameters for default buffer size 2012-04-13 11:18:23 -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