]> git.baikalelectronics.ru Git - uboot.git/commit
dm: pmic: ignore disabled node in pmic_bind_children
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 26 Oct 2022 13:05:10 +0000 (15:05 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 12 Dec 2022 10:25:28 +0000 (11:25 +0100)
commite55e11f1d78913c9b885a62b69ddd984d4acb0ec
tree90f084997c3e74d6a7e7e8256f307ecefffd084b
parenta61981be5456052b63d13d06a9aab4402ec011e6
dm: pmic: ignore disabled node in pmic_bind_children

Ignore the disabled children node in pmic_bind_children() so the
disabled regulators in device tree are not registered.

This patch is based on the dm_scan_fdt_node() code - only the
activated nodes are bound -  and it solves possible issue when a
deactivated regulator is bound, error for duplicated regulator name
for example.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/power/pmic/pmic-uclass.c