diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-05-17 13:20:10 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-05-17 13:20:10 +0000 |
commit | 20de9681f0d8b7c46da74099ed796dbb302c09d0 (patch) | |
tree | 91ddf09ead9b2899c39a0cd83cf975ec44e5d201 /target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch | |
parent | 95f5d95c62748f62a0d3c9c487a979fc1fa2b6cf (diff) | |
download | master-187ad058-20de9681f0d8b7c46da74099ed796dbb302c09d0.tar.gz master-187ad058-20de9681f0d8b7c46da74099ed796dbb302c09d0.tar.bz2 master-187ad058-20de9681f0d8b7c46da74099ed796dbb302c09d0.zip |
brcm47xx: remove support for kernel 3.2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31771 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch b/target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch deleted file mode 100644 index 0933fb6959..0000000000 --- a/target/linux/brcm47xx/patches-3.2/400-arch-bcm47xx.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/arch/mips/bcm47xx/nvram.c -+++ b/arch/mips/bcm47xx/nvram.c -@@ -269,3 +269,30 @@ int nvram_getenv(char *name, char *val, - return NVRAM_ERR_ENVNOTFOUND; - } - EXPORT_SYMBOL(nvram_getenv); -+ -+char *nvram_get(const char *name) -+{ -+ char *var, *value, *end, *eq; -+ -+ if (!name) -+ return NULL; -+ -+ if (!nvram_buf[0]) -+ early_nvram_init(); -+ -+ /* Look for name=value and return value */ -+ var = &nvram_buf[sizeof(struct nvram_header)]; -+ end = nvram_buf + sizeof(nvram_buf) - 2; -+ end[0] = end[1] = '\0'; -+ for (; *var; var = value + strlen(value) + 1) { -+ eq = strchr(var, '='); -+ if (!eq) -+ break; -+ value = eq + 1; -+ if ((eq - var) == strlen(name) && strncmp(var, name, (eq - var)) == 0) -+ return value; -+ } -+ -+ return NULL; -+} -+EXPORT_SYMBOL(nvram_get); ---- a/arch/mips/bcm47xx/setup.c -+++ b/arch/mips/bcm47xx/setup.c -@@ -384,3 +384,20 @@ static int __init bcm47xx_register_flash - return -1; - } - fs_initcall(bcm47xx_register_flash); -+ -+static int __init bcm47xx_register_gpiodev(void) -+{ -+ static struct resource res = { -+ .start = 0xFFFFFFFF, -+ }; -+ struct platform_device *pdev; -+ -+ pdev = platform_device_register_simple("GPIODEV", 0, &res, 1); -+ if (!pdev) { -+ printk(KERN_ERR "bcm47xx: GPIODEV init failed\n"); -+ return -ENODEV; -+ } -+ -+ return 0; -+} -+device_initcall(bcm47xx_register_gpiodev); |