diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 2515d3e..87554d2 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -69,6 +69,7 @@ return -EINVAL; fix = xzalloc(sizeof(*fix)); + fix->gpio = -EINVAL; if (of_get_property(dev->device_node, "gpio", NULL)) { fix->gpio = of_get_named_gpio_flags(dev->device_node, "gpio", 0, &gpioflags);