X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Farch%2Fmips%2Fath79%2Fmach-tl-mr3x20.c;h=5924ac5048fc816d7b2a5417c701209fbf3e87b7;hb=e488b6432a31cc8abb9110fbd49933049e55a502;hp=35515a9b4b36e0216192a959e3e5b56a5cafc882;hpb=d9077e15ae00813535ac3f226c7f74f3422df8c2;p=openwrt.git 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 35515a9b4b..5924ac5048 100644 --- 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,9 @@ static void __init tl_ap99_setup(void) 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); - + gpio_request_one(TL_MR3X20_GPIO_USB_POWER, + GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, + "USB power"); ath79_register_usb(); }