diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-07 16:24:20 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-06-24 14:46:18 +0200 |
commit | 7449628154bde6c5f29b926617d67012e05ebfc4 (patch) | |
tree | 9520585cbfe83f06770f3b6fedfaa23d69f46e88 | |
parent | f9302eb42ad8f597b46e681b5ad402af3fb7dd9d (diff) |
regulator: rn5t618: allow GPIO 0 to be used for an enable signal
Follow commit 286098c029bda740822e68ba6ac2ba0b2fe7c5d3
GPIO number 0 *is* legal and must be accepted.
Set .ena_gpio to -ENODEV on regulators having no GPIO in preparation
of a code change to accept GPIO 0 in the config.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | drivers/regulator/rn5t618-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/rn5t618-regulator.c b/drivers/regulator/rn5t618-regulator.c index c4e3ea192a2f..bfaab67ffb1f 100644 --- a/drivers/regulator/rn5t618-regulator.c +++ b/drivers/regulator/rn5t618-regulator.c @@ -82,7 +82,7 @@ static struct regulator_desc rn5t618_regulators[] = { static int rn5t618_regulator_probe(struct platform_device *pdev) { struct rn5t618 *rn5t618 = dev_get_drvdata(pdev->dev.parent); - struct regulator_config config = { }; + struct regulator_config config = { .ena_gpio = -ENODEV }; struct regulator_dev *rdev; struct regulator_desc *regulators; int i; |