gpio: ath79: Check valid gpio count for both DT and non-DT cases
authorAxel Lin <axel.lin@ingics.com>
Sat, 20 Feb 2016 01:48:07 +0000 (09:48 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Feb 2016 14:20:43 +0000 (15:20 +0100)
commitf0d3c72ccb3224fa70cbdb7998b1263d739b1b3c
treed69f40023e03d75de59f5b1e9ecd0a8b4ebd1954
parent40c8eabac43db862810367edb2fe9ec7f69e814e
gpio: ath79: Check valid gpio count for both DT and non-DT cases

Move the code checking valid gpio count to cover both DT and non-DT cases.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ath79.c