[PATCH] staging: comedi: register sysfs device attributes with driver core

Greg KH gregkh at linuxfoundation.org
Mon May 14 20:00:49 UTC 2012


On Thu, May 10, 2012 at 06:05:28PM -0700, H Hartley Sweeten wrote:
> 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.

Nice job, thanks for making this change.

greg k-h



More information about the devel mailing list