ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio
[openwrt/staging/mkresin.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-hornet-ub.c
index f8870e711ce0ac1d385626a9567069523f05e9b2..d2cfb0972a4acdff0e43ffb4c7c7e56e38f0cf1c 100644 (file)
@@ -101,8 +101,9 @@ static void __init hornet_ub_gpio_setup(void)
        t |= AR933X_BOOTSTRAP_MDIO_GPIO_EN;
        ath79_reset_wr(AR933X_RESET_REG_BOOTSTRAP, t);
 
-       ath79_set_usb_power_gpio(HORNET_UB_GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH,
-                               "USB power");
+       gpio_request_one(HORNET_UB_GPIO_USB_POWER,
+                        GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+                        "USB power");
 }
 
 static void __init hornet_ub_setup(void)