pinctrl: tegra-xusb: fix an off by one test
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 31 Jul 2014 15:22:17 +0000 (18:22 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 17 Aug 2014 14:15:44 +0000 (09:15 -0500)
commit8e1594db7e43eaf4ea88b870e97fa3ab9f8f98e0
treea534f9b5093dac349e07c539a47600b04972aa0f
parent99e872d953fb4484029c12dce909f514ae095d8d
pinctrl: tegra-xusb: fix an off by one test

This shoudld be ">= ARRAY_SIZE()" instead of "> ARRAY_SIZE()".

Fixes: dc0a39386687 ('pinctrl: Add NVIDIA Tegra XUSB pad controller support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra-xusb.c