1 --- a/arch/mips/ath79/dev-usb.c
2 +++ b/arch/mips/ath79/dev-usb.c
4 #include <linux/init.h>
5 #include <linux/delay.h>
7 +#include <linux/gpio.h>
8 #include <linux/dma-mapping.h>
9 #include <linux/platform_device.h>
10 #include <linux/usb/ehci_pdriver.h>
11 @@ -282,3 +283,26 @@ void __init ath79_register_usb(void)
16 +void __init ath79_set_usb_power_gpio(unsigned int gpio, unsigned long flags,
21 + err = gpio_request_one(gpio, flags, label);
23 + pr_err("ath79: can't setup GPIO%u (%s), err=%d\n",
28 + err = gpio_export(gpio, false);
30 + pr_err("ath79: can't export GPIO%u (%s), err=%d\n",
38 --- a/arch/mips/ath79/dev-usb.h
39 +++ b/arch/mips/ath79/dev-usb.h
41 #define _ATH79_DEV_USB_H
43 void ath79_register_usb(void);
44 +void ath79_set_usb_power_gpio(unsigned int gpio, unsigned long flags,
47 #endif /* _ATH79_DEV_USB_H */