summaryrefslogtreecommitdiff
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-20 11:43:59 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-20 11:44:34 +0100
commit0f9e9cd61f46c07246e30871fd638ffeaca3c576 (patch)
tree1a7b84871da0f2ebad48c6838f66fbe91cc26995 /drivers/regulator/core.c
parent86a930d5e9702391f6f997366686a48885f21513 (diff)
parent7f0801e566cc78315e5dc383bf3c3b5b5b436048 (diff)
downloadlwn-0f9e9cd61f46c07246e30871fd638ffeaca3c576.tar.gz
lwn-0f9e9cd61f46c07246e30871fd638ffeaca3c576.zip
Merge tag 'drm-intel-fixes-2015-03-19' into drm-intel-next
Backmerge because of numerous and interleaving conflicts and git rerere getting confused a bit too often. Conflicts: drivers/gpu/drm/i915/intel_display.c All conflicts are because of -next patches backported to -fixes, so just go with the code in -next. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index b899947d839d..1245dca79009 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3444,13 +3444,6 @@ static umode_t regulator_attr_is_visible(struct kobject *kobj,
if (attr == &dev_attr_requested_microamps.attr)
return rdev->desc->type == REGULATOR_CURRENT ? mode : 0;
- /* all the other attributes exist to support constraints;
- * don't show them if there are no constraints, or if the
- * relevant supporting methods are missing.
- */
- if (!rdev->constraints)
- return 0;
-
/* constraints need specific supporting methods */
if (attr == &dev_attr_min_microvolts.attr ||
attr == &dev_attr_max_microvolts.attr)