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 09:09:59 +0000 (10:09 +0100)
commit2b99d3279037631ca522cabf428c778a9b63163a
treec657553e3c634ef93ed1e6e561206120d57d1c09
parent29821c2c611f1f4e4013fe68686375a2b84281c7
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