|
@@ -1247,7 +1247,7 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
|
|
struct regulator_dev *rdev;
|
|
struct regulator_dev *rdev;
|
|
struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
|
|
struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
|
|
const char *devname = NULL;
|
|
const char *devname = NULL;
|
|
- int ret = 0;
|
|
|
|
|
|
+ int ret = -EPROBE_DEFER;
|
|
|
|
|
|
if (id == NULL) {
|
|
if (id == NULL) {
|
|
pr_err("get() with no identifier\n");
|
|
pr_err("get() with no identifier\n");
|