Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/char/misc.c: use bitmap/bitops functions for dynamic minor nu…
…mber 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 <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information