]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: a3700: Fix the issue that gpio controller is registered with wrong node id
authorKen Ma <make@marvell.com>
Thu, 22 Jun 2017 09:13:36 +0000 (17:13 +0800)
committerStefan Roese <sr@denx.de>
Fri, 23 Jun 2017 05:09:40 +0000 (07:09 +0200)
commit93f304d8511d2301638b0a565d9e8dd58b1f2dab
treec226058a5138c1007b12dec856a06adcd77cba5a
parentdacd3d0c207be65eae6b3e815c6c6d89bbfb6aa1
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>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c