ar71xx: add a common function to configure USB power GPIOs
[openwrt/staging/chunkeey.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-hornet-ub.c
index 45dc0f618c85532c1019284e11a93729b1734756..f8870e711ce0ac1d385626a9567069523f05e9b2 100644 (file)
@@ -101,8 +101,8 @@ static void __init hornet_ub_gpio_setup(void)
        t |= AR933X_BOOTSTRAP_MDIO_GPIO_EN;
        ath79_reset_wr(AR933X_RESET_REG_BOOTSTRAP, t);
 
-       gpio_request(HORNET_UB_GPIO_USB_POWER, "USB power");
-       gpio_direction_output(HORNET_UB_GPIO_USB_POWER, 1);
+       ath79_set_usb_power_gpio(HORNET_UB_GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH,
+                               "USB power");
 }
 
 static void __init hornet_ub_setup(void)