diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2013-02-01 14:40:17 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-04 13:38:06 -0500 |
commit | 896b65f3453d434983969e3ee7c254f4f8ba1424 (patch) | |
tree | dcbec2381f7c4394852f1abd831a177be07f4da4 /drivers/regulator | |
parent | a451405fcdf4048aa46c80ede25b36eba27ba3ec (diff) |
regulator: show state for GPIO-controlled regulators
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 278584302f2d..6b3550ab480f 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -3208,7 +3208,7 @@ static int add_regulator_attributes(struct regulator_dev *rdev) | |||
3208 | if (status < 0) | 3208 | if (status < 0) |
3209 | return status; | 3209 | return status; |
3210 | } | 3210 | } |
3211 | if (ops->is_enabled) { | 3211 | if (rdev->ena_gpio || ops->is_enabled) { |
3212 | status = device_create_file(dev, &dev_attr_state); | 3212 | status = device_create_file(dev, &dev_attr_state); |
3213 | if (status < 0) | 3213 | if (status < 0) |
3214 | return status; | 3214 | return status; |