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;