浏览代码

regulator: da9062: Remove unused variable build warning

Remove the unused variable build warning for reg_matches that appears
during the compilation of the DA9062 regulator driver.

da9062-regulator.c: In function da9062_regulator_probe:
da9062-regulator.c:727:29: warning: unused variable reg_matches

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
S Twiss 10 年之前
父节点
当前提交
050d0f2de1
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/regulator/da9062-regulator.c

+ 0 - 1
drivers/regulator/da9062-regulator.c

@@ -724,7 +724,6 @@ ldo_lim_error:
 static int da9062_regulator_probe(struct platform_device *pdev)
 {
 	struct da9062 *chip = dev_get_drvdata(pdev->dev.parent);
-	struct of_regulator_match *reg_matches = NULL;
 	struct da9062_regulators *regulators;
 	struct da9062_regulator *regl;
 	struct regulator_config config = { };