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>
This commit is contained in:
Kuninori Morimoto 2014-02-11 17:27:08 -08:00 committed by Mark Brown
parent 0094050d78
commit 5676ddc5c6
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ of_get_gpio_regulator_config(struct device *dev, struct device_node *np)
if (prop) { if (prop) {
proplen = prop->length / sizeof(int); proplen = prop->length / sizeof(int);
if (proplen != config->nr_gpios) { if (proplen != config->nr_gpios) {
/* gpios <-> gpios-states mismatch */ dev_warn(dev, "gpios <-> gpios-states mismatch\n");
prop = NULL; prop = NULL;
} }
} }