summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/gpio-regulator.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2014-02-11 17:27:08 -0800
committerMark Brown <broonie@linaro.org>2014-02-12 12:01:14 +0000
commit5676ddc5c62861467582b10b88aadb25ea9c3b52 (patch)
treefea13abe5a525adff85fa4daf9dd326cc729dc72 /drivers/regulator/gpio-regulator.c
parent0094050d783bbadffe83effef11a0bda901153ce (diff)
downloadlinux-5676ddc5c62861467582b10b88aadb25ea9c3b52.tar.gz
linux-5676ddc5c62861467582b10b88aadb25ea9c3b52.tar.bz2
linux-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.c2
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;
}
}