projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9daac
)
mfd: Use gpio_request_one from twl6040-core
author
Axel Lin
<
[email protected]
>
Thu, 1 Dec 2011 01:55:07 +0000
(09:55 +0800)
committer
Samuel Ortiz
<
[email protected]
>
Sun, 8 Jan 2012 23:37:38 +0000
(
00:37
+0100)
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/twl6040-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/twl6040-core.c
b/drivers/mfd/twl6040-core.c
index 7f06685187f47f85452541efe41a51350880d557..dda86293dc9fc0a3f8baaf678591d764824cfe14 100644
(file)
--- a/
drivers/mfd/twl6040-core.c
+++ b/
drivers/mfd/twl6040-core.c
@@
-509,13
+509,10
@@
static int __devinit twl6040_probe(struct platform_device *pdev)
twl6040->audpwron = -EINVAL;
if (gpio_is_valid(twl6040->audpwron)) {
- ret = gpio_request(twl6040->audpwron, "audpwron");
+ ret = gpio_request_one(twl6040->audpwron, GPIOF_OUT_INIT_LOW,
+ "audpwron");
if (ret)
goto gpio1_err;
-
- ret = gpio_direction_output(twl6040->audpwron, 0);
- if (ret)
- goto gpio2_err;
}
/* codec interrupt */