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
d5613379
Commit
d5613379
authored
Jan 16, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
parents
eaa27f34
83b0302d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/regulator/core.c
drivers/regulator/core.c
+3
-1
No files found.
drivers/regulator/core.c
View file @
d5613379
...
...
@@ -1488,7 +1488,7 @@ struct regulator *regulator_get_optional(struct device *dev, const char *id)
}
EXPORT_SYMBOL_GPL
(
regulator_get_optional
);
/*
Locks
held by regulator_put() */
/*
regulator_list_mutex lock
held by regulator_put() */
static
void
_regulator_put
(
struct
regulator
*
regulator
)
{
struct
regulator_dev
*
rdev
;
...
...
@@ -1503,12 +1503,14 @@ static void _regulator_put(struct regulator *regulator)
/* remove any sysfs entries */
if
(
regulator
->
dev
)
sysfs_remove_link
(
&
rdev
->
dev
.
kobj
,
regulator
->
supply_name
);
mutex_lock
(
&
rdev
->
mutex
);
kfree
(
regulator
->
supply_name
);
list_del
(
&
regulator
->
list
);
kfree
(
regulator
);
rdev
->
open_count
--
;
rdev
->
exclusive
=
0
;
mutex_unlock
(
&
rdev
->
mutex
);
module_put
(
rdev
->
owner
);
}
...
...
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