]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tegra: Iterate over the correct number of banks
authorStephen Warren <swarren@nvidia.com>
Fri, 16 Mar 2012 23:37:24 +0000 (17:37 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 4 Apr 2012 19:13:18 +0000 (13:13 -0600)
commitff41abd16e788c02a25ba06f59fa467f4b0fd973
treec98b2979ea4e5f9c37e4d0b15860f94c6efeef79
parentc234bef6b524c65854280c3ff54a23a6f0667e94
gpio: tegra: Iterate over the correct number of banks

When Tegra30 support was added to the Tegra GPIO driver, a few places
which iterated over all banks were not converted to use the variable
tegra_gpio_bank_count rather than hard-coding the bank count. Fix this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
drivers/gpio/gpio-tegra.c