gpio: fix aspeed_gpio_banks array size check
authorVasyl Gomonovych <gomonovych@gmail.com>
Thu, 21 Dec 2017 15:55:10 +0000 (16:55 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Dec 2017 12:53:06 +0000 (13:53 +0100)
commitfe13862c9cad6f7d7d4faa97f546eb94d4989f44
tree05de288d2f0de370bfdd4cb36e5d7f62830e4ec7
parentbd8ed930af7d3e325d53cb6c976c59abb885c1fc
gpio: fix aspeed_gpio_banks array size check

The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE().

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c