From: Thadeu Lima de Souza Cascardo Date: Tue, 15 Dec 2009 02:00:31 +0000 (-0800) Subject: drivers/char/misc.c: use bitmap/bitops functions for dynamic minor number allocation X-Git-Tag: v2.6.33-rc1~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2f38d89d1eced2079189cd880eeacee378370a;p=pandora-kernel.git drivers/char/misc.c: use bitmap/bitops functions for dynamic minor number allocation Use DECLARE_BITMAP(), find_first_zero_bit(), set_bit() and clear_bit() instead of rewriting code to do it with the minor number dynamic allocation bitmap. We need to invert the bit position to keep the code behaviour of using the last minor numbers first, since we don't have a find_last_zero_bit. Signed-off-by: Thadeu Lima de Souza Cascardo Cc: "H. Peter Anvin" Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed