diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-09-09 07:49:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-16 19:27:08 -0400 |
commit | 0fdfd40aca7046eb0b770d64dfe526a03ed5d092 (patch) | |
tree | d6e1146e7be22f98abab5f0e1160e27158197282 | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) |
regulator: da9063: Add missing initialization of da9063_reg_matches
With gcc 4.1.2:
drivers/regulator/da9063-regulator.c: In function ‘da9063_regulator_probe’:
drivers/regulator/da9063-regulator.c:847: warning: ‘da9063_reg_matches’ is used
uninitialized in this function
If the parent device already has platform data, da9063_reg_matches will
not be initialized.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/da9063-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 1a7816390773..362261359ce8 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c | |||
@@ -717,7 +717,7 @@ static int da9063_regulator_probe(struct platform_device *pdev) | |||
717 | { | 717 | { |
718 | struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent); | 718 | struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent); |
719 | struct da9063_pdata *da9063_pdata = dev_get_platdata(da9063->dev); | 719 | struct da9063_pdata *da9063_pdata = dev_get_platdata(da9063->dev); |
720 | struct of_regulator_match *da9063_reg_matches; | 720 | struct of_regulator_match *da9063_reg_matches = NULL; |
721 | struct da9063_regulators_pdata *regl_pdata; | 721 | struct da9063_regulators_pdata *regl_pdata; |
722 | const struct da9063_dev_model *model; | 722 | const struct da9063_dev_model *model; |
723 | struct da9063_regulators *regulators; | 723 | struct da9063_regulators *regulators; |