]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd563e50bea53ecdf99176e5332cd120d5866efd
treee63748a9983acc5471f07dfaf685ca52aa22a82f
parent3b91448320177e1685ce2dc319945dd4d3d56276
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: cb37572bb537 ("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