regulator: pwm-regulator: Fix 'unused-variable' warning
authorLee Jones <lee.jones@linaro.org>
Fri, 10 Jul 2015 07:45:34 +0000 (08:45 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jul 2015 18:34:06 +0000 (19:34 +0100)
drivers/regulator/pwm-regulator.c:
  In function 'pwm_regulator_init_continuous':
drivers/regulator/pwm-regulator.c:202:22:
  warning: unused variable 'np' [-Wunused-variable]
     struct device_node *np = pdev->dev.of_node;
              ^
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pwm-regulator.c

index 936e387cc532d8e879b2f2c4032531e8c76bb8ab..a4c2ce92d41ff4c6fdcf6fdfcd173a6ad15a3afd 100644 (file)
@@ -198,8 +198,6 @@ static int pwm_regulator_init_table(struct platform_device *pdev,
 static int pwm_regulator_init_continuous(struct platform_device *pdev,
                                         struct pwm_regulator_data *drvdata)
 {
-       struct device_node *np = pdev->dev.of_node;
-
        pwm_regulator_desc.ops = &pwm_regulator_voltage_continuous_ops;
        pwm_regulator_desc.continuous_voltage_range = true;