projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regulator: core: Ensure we lock all regulators
[linux-drm-fsl-dcu.git]
/
drivers
/
regulator
/
core.c
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index daffff83ced2a6177db324c82d38803c9a411da1..f71db02fcb7130091e86c455ee70567e187f5cac 100644
(file)
--- a/
drivers/regulator/core.c
+++ b/
drivers/regulator/core.c
@@
-141,7
+141,7
@@
static void regulator_lock_supply(struct regulator_dev *rdev)
int i;
mutex_lock(&rdev->mutex);
- for (i = 1; rdev
->supply
; rdev = rdev->supply->rdev, i++)
+ for (i = 1; rdev; rdev = rdev->supply->rdev, i++)
mutex_lock_nested(&rdev->mutex, i);
}