diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2010-09-14 20:38:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 19:16:43 +0200 |
commit | c66fdab64fd791bdd49fed4f5785643251ddf586 (patch) | |
tree | 2d75b8ce0d1566f173511fc439b6f096bf30d9ca /drivers/base | |
parent | uio: Support 2^MINOR_BITS minors (diff) | |
download | linux-c66fdab64fd791bdd49fed4f5785643251ddf586.tar.xz linux-c66fdab64fd791bdd49fed4f5785643251ddf586.zip |
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 <ebiederm@aristanetworks.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions