Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165387
b: refs/heads/master
c: f25e0b4
h: refs/heads/master
i:
  165385: c29240a
  165383: d511761
v: v3
  • Loading branch information
Mark Brown authored and Liam Girdwood committed Sep 22, 2009
1 parent 8d85dc0 commit d278dec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b39480ac37951de126455991744c9dbb61bbb839
refs/heads/master: f25e0b4fcc38d120e704c377791158c4b2a54daa
4 changes: 2 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,14 +2409,14 @@ static int __init regulator_init_complete(void)
ops = rdev->desc->ops;
c = rdev->constraints;

if (c->name)
if (c && c->name)
name = c->name;
else if (rdev->desc->name)
name = rdev->desc->name;
else
name = "regulator";

if (!ops->disable || c->always_on)
if (!ops->disable || (c && c->always_on))
continue;

mutex_lock(&rdev->mutex);
Expand Down

0 comments on commit d278dec

Please sign in to comment.