regulator: of: fix suspend-min/max-voltage parsing
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 17 Sep 2019 15:40:20 +0000 (17:40 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 17 Sep 2019 15:59:18 +0000 (16:59 +0100)
commit131cb1210d4b58acb0695707dad2eb90dcb50a2a
treee63748a9983acc5471f07dfaf685ca52aa22a82f
parentc82f27df07573ec7b124efe176d2ac6c038787a5
regulator: of: fix suspend-min/max-voltage parsing

Currently the regulator-suspend-min/max-microvolt must be within the
root regulator node but the dt-bindings specifies it as subnode
properties for the regulator-state-[mem/disk/standby] node. The only DT
using this bindings currently is the at91-sama5d2_xplained.dts and this
DT uses it correctly. I don't know if it isn't tested but it can't work
without this fix.

Fixes: f7efad10b5c4 ("regulator: add PM suspend and resume hooks")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20190917154021.14693-3-m.felsch@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/of_regulator.c