From: Eric W. Biederman Date: Tue, 14 Sep 2010 18:38:36 +0000 (-0700) Subject: uio: Statically allocate uio_class and use class .dev_attrs. X-Git-Tag: v2.6.37-rc1~156^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66fdab64fd791bdd49fed4f5785643251ddf586;p=pandora-kernel.git uio: Statically allocate uio_class and use class .dev_attrs. Instead of adding uio class attributes manually after the uio device has been created and we have sent a uevent to userspace, use the class attribute mechanism. This removes races and makes the code simpler. At the same time don't bother to dynamically allocate a struct class for uio, just declare one statically. Less code is needed and it is easier to set the class parameters.tune the class Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed