[PATCH] regulator: adapt warning message when resolving supply

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Apr 21 22:19:20 PDT 2025


We have the exact same message in the MCI core, but with vmmc hardcoded,
which makes it harder to see where the message is originating from.

As the message in the regulator core is printed out when resolving
a regulator's supply fails, mention that.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Cc: Fabian Pflug <f.pflug at pengutronix.de>
---
 drivers/regulator/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index be98f4a27918..f18622cba80c 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -179,7 +179,7 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
 		 * we couldn't. If you want to get rid of this warning, consider
 		 * migrating your platform to have deep probe support.
 		 */
-		rdev_warn(rdev, "Failed to get '%s' regulator (ignored).\n",
+		rdev_warn(rdev, "Failed to get '%s' supply (ignored).\n",
 			 supply_name);
 		return 0;
 	}
-- 
2.39.5




More information about the barebox mailing list