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

Greg KH
2012-05-14T20:00:56Z

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