Title: [8987] branches/2009R1/arch/blackfin/kernel/bfin_gpio.c: [#6107] requesting spi0 pins overflows map arrays on bf51x: Fix array size calculation
Revision
8987
Author
hennerich
Date
2010-07-13 04:25:46 -0400 (Tue, 13 Jul 2010)

Log Message

[#6107] requesting spi0 pins overflows map arrays on bf51x: Fix array size calculation

Modified Paths

Diff

Modified: branches/2009R1/arch/blackfin/kernel/bfin_gpio.c (8986 => 8987)


--- branches/2009R1/arch/blackfin/kernel/bfin_gpio.c	2010-07-13 06:53:21 UTC (rev 8986)
+++ branches/2009R1/arch/blackfin/kernel/bfin_gpio.c	2010-07-13 08:25:46 UTC (rev 8987)
@@ -124,7 +124,8 @@
 #endif
 
 static unsigned short reserved_gpio_map[GPIO_BANK_NUM];
-static unsigned short reserved_peri_map[gpio_bank(MAX_RESOURCES)];
+static unsigned short
+	reserved_peri_map[DIV_ROUND_UP(MAX_RESOURCES, GPIO_BANKSIZE)];
 static unsigned short reserved_gpio_irq_map[GPIO_BANK_NUM];
 
 #define RESOURCE_LABEL_SIZE 	16
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to