summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/bd71837.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-14 07:29:51 -0500
committerTom Rini <trini@konsulko.com>2022-11-14 09:33:36 -0500
commitc4ee4fe92e9be120be6d12718273dec6b63cc7d9 (patch)
tree31d45f462b8b4b85f525308a22e0bebb9f80f27c /drivers/power/pmic/bd71837.c
parentfac432652f38724994a99c2613183fc04534a2cd (diff)
parentfc1c1760de38823edbdc2cdd9606dff938a07f6e (diff)
Merge tag 'u-boot-imx-20221114' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
For 2022.01 ----------- CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/14083 - Fix UART - moved to binman (MX8 boards) - Toradex: sync DTS with Linux - Gateworks: fixes - New boards : MSC SM2S iMX8MP
Diffstat (limited to 'drivers/power/pmic/bd71837.c')
-rw-r--r--drivers/power/pmic/bd71837.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c
index cb9238972f2..fdbbd6f5593 100644
--- a/drivers/power/pmic/bd71837.c
+++ b/drivers/power/pmic/bd71837.c
@@ -63,10 +63,11 @@ static int bd71837_bind(struct udevice *dev)
debug("%s: '%s' - found regulators subnode\n", __func__, dev->name);
- children = pmic_bind_children(dev, regulators_node, pmic_children_info);
- if (!children)
- debug("%s: %s - no child found\n", __func__, dev->name);
-
+ if (CONFIG_IS_ENABLED(PMIC_CHILDREN)) {
+ children = pmic_bind_children(dev, regulators_node, pmic_children_info);
+ if (!children)
+ debug("%s: %s - no child found\n", __func__, dev->name);
+ }
/* Always return success for this device */
return 0;
}