projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add a common function to configure USB power GPIOs
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ath79
/
mach-tl-mr3x20.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3x20.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3x20.c
index
35515a9
..
b35f09f
100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3x20.c
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3x20.c
@@
-102,9
+102,8
@@
static void __init tl_ap99_setup(void)
static void __init tl_mr3x20_usb_setup(void)
{
/* enable power for the USB port */
static void __init tl_mr3x20_usb_setup(void)
{
/* enable power for the USB port */
- gpio_request(TL_MR3X20_GPIO_USB_POWER, "USB power");
- gpio_direction_output(TL_MR3X20_GPIO_USB_POWER, 1);
-
+ ath79_set_usb_power_gpio(TL_MR3X20_GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH,
+ "USB power");
ath79_register_usb();
}
ath79_register_usb();
}