From: H Hartley Sweeten Date: Fri, 11 May 2012 01:05:28 +0000 (-0700) Subject: staging: comedi: register sysfs device attributes with driver core X-Git-Tag: v3.5-rc1~145^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb60367d5dff0e2ee3032f7daf212e5ed9863552;p=pandora-kernel.git 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 Cc: Ian Abbott Cc: Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed