mirror of https://gitee.com/openkylin/linux.git
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:
parent
0094050d78
commit
5676ddc5c6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue