diff options
-rw-r--r-- | drivers/regulator/pwm-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index a4c2ce92d41f..331b85148680 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c | |||
@@ -163,7 +163,7 @@ static int pwm_regulator_init_table(struct platform_device *pdev, | |||
163 | { | 163 | { |
164 | struct device_node *np = pdev->dev.of_node; | 164 | struct device_node *np = pdev->dev.of_node; |
165 | struct pwm_voltages *duty_cycle_table; | 165 | struct pwm_voltages *duty_cycle_table; |
166 | int length; | 166 | int length = 0; |
167 | int ret; | 167 | int ret; |
168 | 168 | ||
169 | of_find_property(np, "voltage-table", &length); | 169 | of_find_property(np, "voltage-table", &length); |