diff options
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r-- | drivers/regulator/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 98c3a74e9949..a11026a53603 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1034,6 +1034,13 @@ 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); return regulator; |