regulator: gpio: print warning if gpios <-> gpios-states mismatch on DT
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 12 Feb 2014 01:27:08 +0000 (17:27 -0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:40 +0000 (09:21 +0900)
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

index ac3a8c7..5491cee 100644 (file)
@@ -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;
                }
        }