mips: pci-lantiq: Fix check for valid gpio
authorRoland Stigge <stigge@antcom.de>
Mon, 18 Jun 2012 09:28:26 +0000 (11:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Jul 2012 13:02:18 +0000 (15:02 +0200)
commit42b14cb037fefa33a2ff51c4d3915a49c71de3d5
tree5accb630636ab2ce17de936e694bc3404b6fed55
parent3996bfc787a3b3d7c7ad97b7519247f9f2ac4068
mips: pci-lantiq: Fix check for valid gpio

This patch fixes two checks for valid gpio number, formerly (wrongly)
considering zero as invalid, now using gpio_is_valid().

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/mips/pci/pci-lantiq.c