summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio_olpc.c
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo2009-12-15 03:00:31 +0100
committerLinus Torvalds2009-12-15 17:53:27 +0100
commit1f2f38d89d1eced2079189cd880eeacee378370a (patch)
tree143d4219d4249591ef1e74688673f9b78ce06aa7 /sound/pci/cs5535audio/cs5535audio_olpc.c
parentdrivers/char/misc.c: clear allocation bit in minor bitmap when device registe... (diff)
downloadkernel-qcow2-linux-1f2f38d89d1eced2079189cd880eeacee378370a.tar.gz
kernel-qcow2-linux-1f2f38d89d1eced2079189cd880eeacee378370a.tar.xz
kernel-qcow2-linux-1f2f38d89d1eced2079189cd880eeacee378370a.zip
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 <cascardo@holoscopio.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio_olpc.c')
0 files changed, 0 insertions, 0 deletions