Skip to contentSkip to conversation

regulator: Don't warn if we failed to get a regulator

PATCH Applied Mark Brown 2 participants 2 messages Mar 11, 2009 – Mar 12, 2009 Voltage and current regulator framework

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regulator: Don't warn if we failed to get a regulator

The consumer can print a message if required, some consumers may have optional regulators and wish to downgrade the logging for them or ignore their absence.

---
 drivers/regulator/core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/regulator/core.c +0 -2
index 08441e2..019a8a4 100644
@@ -1031,8 +1031,6 @@ struct regulator *regulator_get(struct device *dev, const char *id)
 			goto found;
 		}
 	}
-	printk(KERN_ERR "regulator: Unable to get requested regulator: %s\n",
-	       id);
 	mutex_unlock(&regulator_list_mutex);
 	return regulator;
 
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 9 lines · Mark Brown

The consumer can print a message if required, some consumers may have optional regulators and wish to downgrade the logging for them or ignore their absence.

---
 drivers/regulator/core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Applied.

Thanks

Liam