aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-11-05 13:23:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-11-05 13:23:28 +0000
commite92da5e7ae42c7fa6b2308311bf963141226f7e8 (patch)
treefa8e08984b36619dc7248a02f58f32b1b472bc57
parentf2528b1792230b39dca8f03ddabdc06c89b703b6 (diff)
downloadupstream-e92da5e7ae42c7fa6b2308311bf963141226f7e8.tar.gz
upstream-e92da5e7ae42c7fa6b2308311bf963141226f7e8.tar.bz2
upstream-e92da5e7ae42c7fa6b2308311bf963141226f7e8.zip
ar71xx: nuke ath79_set_usb_power_gpio helper
It is no longer used. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34088
-rw-r--r--target/linux/ar71xx/patches-3.3/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch47
-rw-r--r--target/linux/ar71xx/patches-3.6/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch47
2 files changed, 0 insertions, 94 deletions
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 91a793d5e1..0000000000
--- 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 <linux/init.h>
- #include <linux/delay.h>
- #include <linux/irq.h>
-+#include <linux/gpio.h>
- #include <linux/dma-mapping.h>
- #include <linux/platform_device.h>
- #include <linux/usb/ehci_pdriver.h>
-@@ -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 */
diff --git a/target/linux/ar71xx/patches-3.6/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch b/target/linux/ar71xx/patches-3.6/511-MIPS-ath79-add-ath79_set_usb_power_gpio.patch
deleted file mode 100644
index 91a793d5e1..0000000000
--- a/target/linux/ar71xx/patches-3.6/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 <linux/init.h>
- #include <linux/delay.h>
- #include <linux/irq.h>
-+#include <linux/gpio.h>
- #include <linux/dma-mapping.h>
- #include <linux/platform_device.h>
- #include <linux/usb/ehci_pdriver.h>
-@@ -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 */