]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP3 EVM: remove out-of-bounds array access of gpio_leds
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 13 Feb 2012 08:35:22 +0000 (09:35 +0100)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Feb 2012 22:45:33 +0000 (14:45 -0800)
commita92f1207a3f9ea362dc1b21c4014f4715714bd4a
tree3afb222ae5eec94ef79e9db8342a3a69c8c4f3c9
parentb0389151f90a71e804a1c2dcbf9bbdf3b8c1d66c
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 (0196b6ca).

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[tony@atomide.com: updated comments with the warning]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3evm.c