diff options
| -rw-r--r-- | drivers/regulator/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 9fafa00b8cd4..10fb252323fb 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
| @@ -2941,6 +2941,7 @@ regulator_register(const struct regulator_desc *regulator_desc, | |||
| 2941 | return ERR_PTR(-EINVAL); | 2941 | return ERR_PTR(-EINVAL); |
| 2942 | 2942 | ||
| 2943 | dev = config->dev; | 2943 | dev = config->dev; |
| 2944 | WARN_ON(!dev); | ||
| 2944 | 2945 | ||
| 2945 | if (regulator_desc->name == NULL || regulator_desc->ops == NULL) | 2946 | if (regulator_desc->name == NULL || regulator_desc->ops == NULL) |
| 2946 | return ERR_PTR(-EINVAL); | 2947 | return ERR_PTR(-EINVAL); |
