diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2010-09-14 20:38:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 19:16:43 +0200 |
commit | 91960a46c658b719c03fba80f1c60a96393bbcfd (patch) | |
tree | ffa50ea8eeddd9105dff834877ed594cf71ce697 /drivers/w1/w1_netlink.h | |
parent | uio: Cleanup irq handling. (diff) | |
download | linux-91960a46c658b719c03fba80f1c60a96393bbcfd.tar.xz linux-91960a46c658b719c03fba80f1c60a96393bbcfd.zip |
uio: Support 2^MINOR_BITS minors
register_chrdev limits uio devices to 256 minor numbers which causes
problems on one system I have with 384+ uio devices. So instead set
UIO_MAX_DEVICES to the maximum number of minors and use
alloc_chrdev_region to reserve the uio minors.
The final result is that the code works the same but the uio driver now
supports any minor the idr allocator comes up with.
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/w1/w1_netlink.h')
0 files changed, 0 insertions, 0 deletions