2009-03-11 23:36:19

by Mark Brown

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Mark Brown <[email protected]>
---
drivers/regulator/core.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 08441e2..019a8a4 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -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;

--
1.5.6.3


2009-03-12 10:54:46

by Liam Girdwood

[permalink] [raw]
Subject: Re: [PATCH] regulator: Don't warn if we failed to get a regulator

On Wed, 2009-03-11 at 23:35 +0000, Mark Brown wrote:
> 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.
>
> Signed-off-by: Mark Brown <[email protected]>
> ---
> drivers/regulator/core.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>

Applied.

Thanks

Liam