Skip to content

Commit 4b6e8e9

Browse files
ppailletspasdeloup
authored andcommitted
feat(st-regulator): improve out of memory message
Improve out of memory message when to many regulators try to register. Signed-off-by: Pascal Paillet <p.paillet@st.com> Change-Id: I4fc4db87a6364bbc8f429796cbf03807865c612d Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/271770 Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Yann GAUTIER <yann.gautier@foss.st.com> Reviewed-by: Sebastien PASDELOUP <sebastien.pasdeloup-ext@st.com> Domain-Review: Yann GAUTIER <yann.gautier@foss.st.com>
1 parent b751f78 commit 4b6e8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/regulator_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ int regulator_register(const struct regul_description *desc, int node)
811811
}
812812

813813
if (rdev == rdev_array + PLAT_NB_RDEVS) {
814-
WARN("out of memory\n");
814+
WARN("Not enough place for regulators, PLAT_NB_RDEVS should be increased.\n");
815815
return -ENOMEM;
816816
}
817817

0 commit comments

Comments
 (0)