[PATCH 1/2] drivers/regulator/core.c: Don't print error on EPROBE_DEFER

From: Mike Looijmans
Date: Tue Dec 09 2014 - 08:13:09 EST

If a regulator depends on another regulator that happens to be called
later, the kernel always prints a message like this:
reg-fixed-voltage regulator_sd1: Failed to find supply vin
Since the deferral is not something fatal, nor even something the user
may need to be aware about, reduce the message to debug level.

This fixes a storm of error messages at boot when a board has a power
regulator on an I2C bus which powers GPIO controlled regulators for

Signed-off-by: Mike Looijmans <mike.looijmans@xxxxxxxx>
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 e225711..9fb66cd 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3715,7 +3715,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
ret = 0;
goto add_dev;
} else if (!r) {
- dev_err(dev, "Failed to find supply %s\n", supply);
+ dev_dbg(dev, "Failed to find supply %s\n", supply);
goto scrub;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/