Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198380
b: refs/heads/master
c: 23b5cc2
h: refs/heads/master
v: v3
  • Loading branch information
Jani Nikula authored and Liam Girdwood committed May 25, 2010
1 parent e93f99f commit 8b14596
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 0178f3e28e2166664916265c5d4922b1376b9fa1
refs/heads/master: 23b5cc2ab6783256cf06779e1d522482b819b808
7 changes: 6 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,13 @@ static int set_consumer_device_supply(struct regulator_dev *rdev,
has_dev = 0;

list_for_each_entry(node, &regulator_map_list, list) {
if (consumer_dev_name != node->dev_name)
if (node->dev_name && consumer_dev_name) {
if (strcmp(node->dev_name, consumer_dev_name) != 0)
continue;
} else if (node->dev_name || consumer_dev_name) {
continue;
}

if (strcmp(node->supply, supply) != 0)
continue;

Expand Down

0 comments on commit 8b14596

Please sign in to comment.