From: Eric W. Biederman Date: Tue, 14 Sep 2010 18:38:06 +0000 (-0700) Subject: uio: Support 2^MINOR_BITS minors X-Git-Tag: v2.6.37-rc1~156^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91960a46c658b719c03fba80f1c60a96393bbcfd;p=pandora-kernel.git 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 Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed