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
5535fc79
Commit
5535fc79
authored
May 13, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
parents
e9cb77d0
2c0a303a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
drivers/regulator/core.c
drivers/regulator/core.c
+1
-12
No files found.
drivers/regulator/core.c
View file @
5535fc79
...
...
@@ -1150,17 +1150,6 @@ static int set_machine_constraints(struct regulator_dev *rdev,
}
}
if
(
rdev
->
constraints
->
active_discharge
&&
ops
->
set_active_discharge
)
{
bool
ad_state
=
(
rdev
->
constraints
->
active_discharge
==
REGULATOR_ACTIVE_DISCHARGE_ENABLE
)
?
true
:
false
;
ret
=
ops
->
set_active_discharge
(
rdev
,
ad_state
);
if
(
ret
<
0
)
{
rdev_err
(
rdev
,
"failed to set active discharge
\n
"
);
return
ret
;
}
}
print_constraints
(
rdev
);
return
0
;
}
...
...
@@ -4032,8 +4021,8 @@ void regulator_unregister(struct regulator_dev *rdev)
WARN_ON
(
rdev
->
open_count
);
unset_regulator_supplies
(
rdev
);
list_del
(
&
rdev
->
list
);
mutex_unlock
(
&
regulator_list_mutex
);
regulator_ena_gpio_free
(
rdev
);
mutex_unlock
(
&
regulator_list_mutex
);
device_unregister
(
&
rdev
->
dev
);
}
EXPORT_SYMBOL_GPL
(
regulator_unregister
);
...
...
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