mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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 <make@marvell.com> Cc: Stefan Roese <sr@denx.de> Cc: Kostya Porotchkin <kostap@marvell.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Cc: Nadav Haklai <nadavh@marvell.com> Cc: Wilson Ding <dingwei@marvell.com> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
b5a6c94a03
commit
ae118b6855
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue