From: Ken Ma Date: Thu, 22 Jun 2017 09:13:36 +0000 (+0800) Subject: pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ae118b6855a7d003a7d024129e686c8a4a400141;p=u-boot.git pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id In armada_37xx_gpiochip_register, the return value of fdtdec_get_bool should be true when gpio-controller is found; current codes makes a wrong inverse return value judgement, this patch fixes it. Signed-off-by: Ken Ma Cc: Stefan Roese Cc: Kostya Porotchkin Cc: Gregory CLEMENT Cc: Nadav Haklai Cc: Wilson Ding Reviewed-by: Stefan Roese Signed-off-by: Stefan Roese --- diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 2ac66ec325..27165b0007 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -539,7 +539,7 @@ static int armada_37xx_gpiochip_register(struct udevice *parent, } fdt_for_each_subnode(subnode, blob, node) { - if (!fdtdec_get_bool(blob, subnode, "gpio-controller")) { + if (fdtdec_get_bool(blob, subnode, "gpio-controller")) { ret = 0; break; }