From 3964c94be73584fd8b1264244cb7eceea61e4dca Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 25 Nov 2012 16:15:05 +0000 Subject: AA: ar71xx: nuke ath79_set_usb_power_gpio helper Backport of r34088. It is no longer used. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34334 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...1-MIPS-ath79-add-ath79_set_usb_power_gpio.patch | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 target/linux/ar71xx/patches-3.3/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch diff --git a/target/linux/ar71xx/patches-3.3/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch b/target/linux/ar71xx/patches-3.3/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch deleted file mode 100644 index 91a793d5e..000000000 --- a/target/linux/ar71xx/patches-3.3/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/arch/mips/ath79/dev-usb.c -+++ b/arch/mips/ath79/dev-usb.c -@@ -15,6 +15,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -282,3 +283,26 @@ void __init ath79_register_usb(void) - else - BUG(); - } -+ -+void __init ath79_set_usb_power_gpio(unsigned int gpio, unsigned long flags, -+ const char *label) -+{ -+ int err; -+ -+ err = gpio_request_one(gpio, flags, label); -+ if (err) { -+ pr_err("ath79: can't setup GPIO%u (%s), err=%d\n", -+ gpio, label, err); -+ return; -+ } -+ -+ err = gpio_export(gpio, false); -+ if (err) { -+ pr_err("ath79: can't export GPIO%u (%s), err=%d\n", -+ gpio, label, err); -+ } -+ -+ return; -+} -+ -+ ---- a/arch/mips/ath79/dev-usb.h -+++ b/arch/mips/ath79/dev-usb.h -@@ -13,5 +13,7 @@ - #define _ATH79_DEV_USB_H - - void ath79_register_usb(void); -+void ath79_set_usb_power_gpio(unsigned int gpio, unsigned long flags, -+ const char *label); - - #endif /* _ATH79_DEV_USB_H */ -- cgit v1.2.3