From 2003a27f89e81137eaaa3d149e8a9a0077cd4df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Date: Fri, 1 Feb 2013 20:40:17 +0100 Subject: [PATCH] --- yaml --- r: 350412 b: refs/heads/master c: 896b65f3453d434983969e3ee7c254f4f8ba1424 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/regulator/core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4af41fad3229..ef3817f4ff04 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a451405fcdf4048aa46c80ede25b36eba27ba3ec +refs/heads/master: 896b65f3453d434983969e3ee7c254f4f8ba1424 diff --git a/trunk/drivers/regulator/core.c b/trunk/drivers/regulator/core.c index 278584302f2d..6b3550ab480f 100644 --- a/trunk/drivers/regulator/core.c +++ b/trunk/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;