public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: show state for GPIO-controlled regulators
@ 2013-02-01 19:40 Michał Mirosław
  2013-02-04 18:38 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Mirosław @ 2013-02-01 19:40 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: open list

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---

patch against https://github.com/torvalds/linux.git master

 drivers/regulator/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2785843..6b3550a 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3208,7 +3208,7 @@ static int add_regulator_attributes(struct regulator_dev *rdev)
 		if (status < 0)
 			return status;
 	}
-	if (ops->is_enabled) {
+	if (rdev->ena_gpio || ops->is_enabled) {
 		status = device_create_file(dev, &dev_attr_state);
 		if (status < 0)
 			return status;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-04 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 19:40 [PATCH] regulator: show state for GPIO-controlled regulators Michał Mirosław
2013-02-04 18:38 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox