diff options
-rw-r--r-- | drivers/regulator/fixed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index e24e3a174c4b..40f38030b394 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c | |||
@@ -192,7 +192,9 @@ static int __devinit reg_fixed_voltage_probe(struct platform_device *pdev) | |||
192 | drvdata->desc.type = REGULATOR_VOLTAGE; | 192 | drvdata->desc.type = REGULATOR_VOLTAGE; |
193 | drvdata->desc.owner = THIS_MODULE; | 193 | drvdata->desc.owner = THIS_MODULE; |
194 | drvdata->desc.ops = &fixed_voltage_ops; | 194 | drvdata->desc.ops = &fixed_voltage_ops; |
195 | drvdata->desc.n_voltages = 1; | 195 | |
196 | if (config->microvolts) | ||
197 | drvdata->desc.n_voltages = 1; | ||
196 | 198 | ||
197 | drvdata->microvolts = config->microvolts; | 199 | drvdata->microvolts = config->microvolts; |
198 | drvdata->gpio = config->gpio; | 200 | drvdata->gpio = config->gpio; |