regulator: pfuze100: Delete reference to ena_gpio
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:30 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 May 2018 15:50:39 +0000 (16:50 +0100)
We now pass a GPIO descriptor to the core instead of a global
GPIO number, if this descriptor is NULL the GPIO line is not
used. Just delete the assignment of an invalid GPIO line.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c

index 26a5cd9b4637f615f6338ca8ceb17d620faf2c52..8d9dbcc775eaa77dce16612d451b9a790dacc45b 100644 (file)
@@ -651,7 +651,6 @@ static int pfuze100_regulator_probe(struct i2c_client *client,
                config.init_data = init_data;
                config.driver_data = pfuze_chip;
                config.of_node = match_of_node(i);
-               config.ena_gpio = -EINVAL;
 
                pfuze_chip->regulators[i] =
                        devm_regulator_register(&client->dev, desc, &config);