ar71xx: rb2011: use board name from the hardware config
[openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tl-mr3x20.c
index 35515a9..5924ac5 100644 (file)
@@ -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();
 }