aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 6f7d411b048b..6cb9d399affd 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1282,6 +1282,7 @@ found:
1282 if (regulator == NULL) { 1282 if (regulator == NULL) {
1283 regulator = ERR_PTR(-ENOMEM); 1283 regulator = ERR_PTR(-ENOMEM);
1284 module_put(rdev->owner); 1284 module_put(rdev->owner);
1285 goto out;
1285 } 1286 }
1286 1287
1287 rdev->open_count++; 1288 rdev->open_count++;