ar71xx: use gpio_request_one instead of ath79_set_usb_power_gpio
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tl-wr703n.c
index f60f9624551f2027e0faf1f1886b0c2c625fb9b6..dcd6fec1c228bb273b168d4509820a6927749c9a 100644 (file)
@@ -69,8 +69,9 @@ static void __init tl_wr703n_setup(void)
                                        ARRAY_SIZE(tl_wr703n_gpio_keys),
                                        tl_wr703n_gpio_keys);
 
-       ath79_set_usb_power_gpio(TL_WR703N_GPIO_USB_POWER, GPIOF_OUT_INIT_HIGH,
-                               "USB power");
+       gpio_request_one(TL_WR703N_GPIO_USB_POWER,
+                        GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+                        "USB power");
        ath79_register_usb();
 
        ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);