提交 0fdfd40a 编写于 作者: G Geert Uytterhoeven 提交者: Mark Brown

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: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 272b98c6
...@@ -717,7 +717,7 @@ static int da9063_regulator_probe(struct platform_device *pdev) ...@@ -717,7 +717,7 @@ static int da9063_regulator_probe(struct platform_device *pdev)
{ {
struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent); struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
struct da9063_pdata *da9063_pdata = dev_get_platdata(da9063->dev); struct da9063_pdata *da9063_pdata = dev_get_platdata(da9063->dev);
struct of_regulator_match *da9063_reg_matches; struct of_regulator_match *da9063_reg_matches = NULL;
struct da9063_regulators_pdata *regl_pdata; struct da9063_regulators_pdata *regl_pdata;
const struct da9063_dev_model *model; const struct da9063_dev_model *model;
struct da9063_regulators *regulators; struct da9063_regulators *regulators;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册