summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-08-04 19:46:25 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-08-04 19:46:25 +0000
commit075899682416938171ad47cba21de5dceebcdb43 (patch)
treec4e4149807f66b206dcf5d8217bcbe0a04537502 /target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch
parent3942aebedc26bccaba639ec281920faca363a6e9 (diff)
downloadmtk-20170518-075899682416938171ad47cba21de5dceebcdb43.zip
mtk-20170518-075899682416938171ad47cba21de5dceebcdb43.tar.gz
mtk-20170518-075899682416938171ad47cba21de5dceebcdb43.tar.bz2
brcm47xx: use libgpio instaed of implementing the gpio interface ourself.
SVN-Revision: 32992
Diffstat (limited to 'target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch')
-rw-r--r--target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch b/target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch
index 76419e8..6b44254 100644
--- a/target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch
+++ b/target/linux/brcm47xx/patches-3.3/812-disable_wgt634u_crap.patch
@@ -7,7 +7,7 @@
-obj-$(CONFIG_BCM47XX_SSB) += wgt634u.o
--- a/arch/mips/bcm47xx/wgt634u.c
+++ /dev/null
-@@ -1,170 +0,0 @@
+@@ -1,177 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
@@ -143,6 +143,7 @@
- * been allocated ranges 00:09:5b:xx:xx:xx and 00:0f:b5:xx:xx:xx.
- */
- u8 *et0mac;
+- int err;
-
- if (bcm47xx_bus_type != BCM47XX_BUS_TYPE_SSB)
- return -ENODEV;
@@ -156,6 +157,12 @@
-
- printk(KERN_INFO "WGT634U machine detected.\n");
-
+- err = gpio_request(WGT634U_GPIO_RESET, "reset-buton");
+- if (err) {
+- printk(KERN_INFO "Can not register gpio fir reset button\n");
+- return 0;
+- }
+-
- if (!request_irq(gpio_to_irq(WGT634U_GPIO_RESET),
- gpio_interrupt, IRQF_SHARED,
- "WGT634U GPIO", &bcm47xx_bus.ssb.chipco)) {