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 e11c2222d9af..79a6910eb894 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2253,6 +2253,7 @@ void regulator_unregister(struct regulator_dev *rdev) | |||
2253 | return; | 2253 | return; |
2254 | 2254 | ||
2255 | mutex_lock(®ulator_list_mutex); | 2255 | mutex_lock(®ulator_list_mutex); |
2256 | WARN_ON(rdev->open_count); | ||
2256 | unset_regulator_supplies(rdev); | 2257 | unset_regulator_supplies(rdev); |
2257 | list_del(&rdev->list); | 2258 | list_del(&rdev->list); |
2258 | if (rdev->supply) | 2259 | if (rdev->supply) |