diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-02-11 20:27:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 07:01:14 -0500 |
commit | 5676ddc5c62861467582b10b88aadb25ea9c3b52 (patch) | |
tree | fea13abe5a525adff85fa4daf9dd326cc729dc72 /drivers/regulator/gpio-regulator.c | |
parent | 0094050d783bbadffe83effef11a0bda901153ce (diff) |
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) | |||
176 | if (prop) { | 176 | if (prop) { |
177 | proplen = prop->length / sizeof(int); | 177 | proplen = prop->length / sizeof(int); |
178 | if (proplen != config->nr_gpios) { | 178 | if (proplen != config->nr_gpios) { |
179 | /* gpios <-> gpios-states mismatch */ | 179 | dev_warn(dev, "gpios <-> gpios-states mismatch\n"); |
180 | prop = NULL; | 180 | prop = NULL; |
181 | } | 181 | } |
182 | } | 182 | } |