summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/gpio-regulator.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2014-02-12 02:27:08 +0100
committerMark Brown <broonie@linaro.org>2014-02-12 13:01:14 +0100
commit5676ddc5c62861467582b10b88aadb25ea9c3b52 (patch)
treefea13abe5a525adff85fa4daf9dd326cc729dc72 /drivers/regulator/gpio-regulator.c
parentregulator: gpio: add gpios-status for DT (diff)
downloadlinux-5676ddc5c62861467582b10b88aadb25ea9c3b52.tar.xz
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;
}
}