diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-02-11 17:27:08 -0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 12:01:14 +0000 |
commit | 5676ddc5c62861467582b10b88aadb25ea9c3b52 (patch) | |
tree | fea13abe5a525adff85fa4daf9dd326cc729dc72 /drivers/regulator/gpio-regulator.c | |
parent | 0094050d783bbadffe83effef11a0bda901153ce (diff) | |
download | linux-stable-5676ddc5c62861467582b10b88aadb25ea9c3b52.tar.gz linux-stable-5676ddc5c62861467582b10b88aadb25ea9c3b52.tar.bz2 linux-stable-5676ddc5c62861467582b10b88aadb25ea9c3b52.zip |
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>
Diffstat (limited to 'drivers/regulator/gpio-regulator.c')
-rw-r--r-- | drivers/regulator/gpio-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |