diff options
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r-- | drivers/regulator/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 02a774424e8d..d2a23066e3fb 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -927,6 +927,11 @@ struct regulator *regulator_get(struct device *dev, const char *id) goto found; } } + list_for_each_entry(rdev, ®ulator_list, list) { + if (strcmp(rdev->desc->name, id) == 0) { + goto found; + } + } printk(KERN_ERR "regulator: Unable to get requested regulator: %s\n", id); mutex_unlock(®ulator_list_mutex); |