From: Arnout Vandecappelle (Essensium/Mind) Date: Mon, 13 Feb 2012 08:35:22 +0000 (+0100) Subject: OMAP3 EVM: remove out-of-bounds array access of gpio_leds X-Git-Tag: v3.3-rc6~22^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe8f7e59d0de3a97d264220deeffa90b8b14003;p=pandora-kernel.git OMAP3 EVM: remove out-of-bounds array access of gpio_leds Otherwise we can get the following warning on some compilers: arch/arm/mach-omap2/board-omap3evm.c:384:11: warning: array subscript is above array bounds The omap3evm BSP enables a GPIO LED on the twl4030 chip. However, the static gpio_leds array doesn't have an entry for it. This is most likely a copy-and-paste error, because it has been in there since the first commit of the omap3evm BSP (53c5ec31). Signed-off-by: Arnout Vandecappelle (Essensium/Mind) [tony@atomide.com: updated comments with the warning] Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed