diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-09-04 12:35:00 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-05 19:07:30 +0100 |
commit | a95744670664a8a184eb26049dc7020f221a0979 (patch) | |
tree | 98fe8d2799eb23ad79949ac8c7c422ff9fe68271 /scripts/file-size.sh | |
parent | 55576cf1853798e86f620766e23b604c9224c19c (diff) | |
download | linux-a95744670664a8a184eb26049dc7020f221a0979.tar.bz2 |
regulator: tps65132: Stop parsing DT when gpio is not found
In case of a missing (optional) gpio don't fall through up to
"ti,active-discharge-time-us" due to
devm_fwnode_get_index_gpiod_from_child() returning NULL (since
gpiod_get_from_of_node() returned NULL) but rather indicate success as
intended.
This makes the driver probe correctly when e.g. only the enable gpio is
given.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Link: https://lore.kernel.org/r/363bd50cc7c60daa57d614a341d1fd649f05194c.1567625660.git.agx@sigxcpu.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions