spi: fix spidev for >sizeof(long)/32 devices
authorDomen Puncer <domen@coderock.org>
Wed, 16 May 2007 06:57:05 +0000 (23:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 May 2007 04:19:15 +0000 (21:19 -0700)
commit0a4dd7783dfc62176a29cb349404180f24f46975
tree9cd363f697114b5ade9821f5f4fd4f2f4e4b6976
parentbb33ed6345d6156484f39089aa8b52f44ce76609
spi: fix spidev for >sizeof(long)/32 devices

find_first_zero_bit accepts number of bits, not longs.

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spidev.c