Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3ad4b051
Commit
3ad4b051
authored
Jan 12, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
parents
16830985
fa731ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
drivers/regulator/core.c
drivers/regulator/core.c
+3
-11
No files found.
drivers/regulator/core.c
View file @
3ad4b051
...
...
@@ -138,18 +138,10 @@ static bool have_full_constraints(void)
*/
static
void
regulator_lock_supply
(
struct
regulator_dev
*
rdev
)
{
struct
regulator
*
supply
;
int
i
=
0
;
while
(
1
)
{
mutex_lock_nested
(
&
rdev
->
mutex
,
i
++
);
supply
=
rdev
->
supply
;
if
(
!
rdev
->
supply
)
return
;
int
i
;
rdev
=
supply
->
rdev
;
}
for
(
i
=
0
;
rdev
->
supply
;
rdev
=
rdev
->
supply
->
rdev
,
i
++
)
mutex_lock_nested
(
&
rdev
->
mutex
,
i
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment