From: Thadeu Lima de Souza Cascardo Date: Mon, 14 Dec 2009 22:20:23 +0000 (-0800) Subject: spidev: use DECLARE_BITMAP instead of declaring the array X-Git-Tag: v2.6.33-rc1~9^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ae1c9248042c5122f9628282f41c363c9610dd7;p=profile%2Fivi%2Fkernel-x86-ivi.git spidev: use DECLARE_BITMAP instead of declaring the array [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Thadeu Lima de Souza Cascardo Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Grant Likely --- diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index f8279e7..cb7147e 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -54,7 +54,7 @@ #define SPIDEV_MAJOR 153 /* assigned */ #define N_SPI_MINORS 32 /* ... up to 256 */ -static unsigned long minors[N_SPI_MINORS / BITS_PER_LONG]; +static DECLARE_BITMAP(minors, N_SPI_MINORS); /* Bit masks for spi_device.mode management. Note that incorrect