diff options
| author | Thadeu Lima de Souza Cascardo <[email protected]> | 2009-12-14 18:00:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-15 08:53:27 -0800 |
| commit | 1f2f38d89d1eced2079189cd880eeacee378370a (patch) | |
| tree | 143d4219d4249591ef1e74688673f9b78ce06aa7 /include/linux | |
| parent | 4ae717da8d18839487485f6ae608b8542790fdd3 (diff) | |
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 <[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]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions