| From 6c2dc14f9bfc3067723b3b99573c7f7fccd36b2d Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Tue, 11 Feb 2014 17:27:08 -0800 |
| Subject: regulator: gpio: print warning if gpios <-> gpios-states mismatch on |
| DT |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Mark Brown <broonie@linaro.org> |
| (cherry picked from commit 5676ddc5c62861467582b10b88aadb25ea9c3b52) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/regulator/gpio-regulator.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c |
| index ac3a8c732dd8..5491ceeb53cc 100644 |
| --- a/drivers/regulator/gpio-regulator.c |
| +++ b/drivers/regulator/gpio-regulator.c |
| @@ -176,7 +176,7 @@ of_get_gpio_regulator_config(struct device *dev, struct device_node *np) |
| if (prop) { |
| proplen = prop->length / sizeof(int); |
| if (proplen != config->nr_gpios) { |
| - /* gpios <-> gpios-states mismatch */ |
| + dev_warn(dev, "gpios <-> gpios-states mismatch\n"); |
| prop = NULL; |
| } |
| } |
| -- |
| 2.1.2 |
| |