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
Kirill Smelkov
linux
Commits
09e3fd20
Commit
09e3fd20
authored
May 07, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regulator: wm8994: Convert to gpio_request_one()
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
a60cfce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
drivers/regulator/wm8994-regulator.c
drivers/regulator/wm8994-regulator.c
+1
-8
No files found.
drivers/regulator/wm8994-regulator.c
View file @
09e3fd20
...
...
@@ -224,19 +224,12 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
if
(
pdata
->
ldo
[
id
].
enable
&&
gpio_is_valid
(
pdata
->
ldo
[
id
].
enable
))
{
ldo
->
enable
=
pdata
->
ldo
[
id
].
enable
;
ret
=
gpio_request
(
ldo
->
enable
,
"WM8994 LDO enable"
);
ret
=
gpio_request
_one
(
ldo
->
enable
,
0
,
"WM8994 LDO enable"
);
if
(
ret
<
0
)
{
dev_err
(
&
pdev
->
dev
,
"Failed to get enable GPIO: %d
\n
"
,
ret
);
goto
err
;
}
ret
=
gpio_direction_output
(
ldo
->
enable
,
ldo
->
is_enabled
);
if
(
ret
<
0
)
{
dev_err
(
&
pdev
->
dev
,
"Failed to set GPIO up: %d
\n
"
,
ret
);
goto
err_gpio
;
}
}
else
ldo
->
is_enabled
=
true
;
...
...
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