]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
axp81x: Do not fail if regulators aren't properly defined
authorEmmanuel Vadot <manu@FreeBSD.org>
Sat, 7 Apr 2018 14:17:17 +0000 (14:17 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Sat, 7 Apr 2018 14:17:17 +0000 (14:17 +0000)
commit0745a23ddc7d69831cc4569a628e3fd6b87a75cd
tree11d7664f3a39e850bbf006ae76e6f963a0681186
parent671d7001679ca9eaf16a9ca7ceb77c139847b4db
axp81x: Do not fail if regulators aren't properly defined

If a regulator is missing a mandatory property (like 'regulator-name'), do
not fail, regulator_parse_ofw_stdparam is returning a non-zero value so just
skip this regulator.
Also if any regulator fails to attach continue with the rest of the regulators
instead of returning ENXIO in axp8xx_attach

Tested On: BananaPi M3
sys/arm/allwinner/axp81x.c