pinctrl: just return if no valid maps
authorlijiazi <jqqlijiazi@gmail.com>
Fri, 1 Nov 2019 11:43:52 +0000 (19:43 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Nov 2019 10:25:39 +0000 (11:25 +0100)
commit6e4f3db8dfcf6c4126232086251a31db364503e1
tree74e0329be95309144b857521257d54b9b0e785cb
parentee19835270202a0d018651f7fea93ce55b35fd4e
pinctrl: just return if no valid maps

If there is a problem with a pinctrl node of a device,
for example, config child node do not have prop specified in
dt_params, num_maps maybe 0. On this condition, no need remember
this map.

Signed-off-by: lijiazi <lijiazi@xiaomi.com>
Link: https://lore.kernel.org/r/29421e7720443a2454830963186f00583c76ce1e.1572588550.git.lijiazi@xiaomi.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/devicetree.c