ramips: use COMMAND_LINE_SIZE directly
authorGabor Juhos <juhosg@openwrt.org>
Fri, 28 May 2010 19:45:24 +0000 (19:45 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 28 May 2010 19:45:24 +0000 (19:45 +0000)
SVN-Revision: 21606

target/linux/ramips/files/arch/mips/ralink/common/prom.c
target/linux/ramips/patches-2.6.34/104-clsize.patch [deleted file]

index fb37274fff0a36df321dafdd4699cc1fe934506c..b207b66a8bcb5eebcb736e8c1e7f985e6c6dff0d 100644 (file)
@@ -46,7 +46,7 @@ static inline void *to_ram_addr(void *addr)
 static void __init prom_append_cmdline(const char *name,
                                       const char *value)
 {
-       char buf[CL_SIZE];
+       char buf[COMMAND_LINE_SIZE];
 
        snprintf(buf, sizeof(buf), " %s=%s", name, value);
        strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline));
diff --git a/target/linux/ramips/patches-2.6.34/104-clsize.patch b/target/linux/ramips/patches-2.6.34/104-clsize.patch
deleted file mode 100644 (file)
index 3494233..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/arch/mips/include/asm/bootinfo.h
-+++ b/arch/mips/include/asm/bootinfo.h
-@@ -12,6 +12,8 @@
- #ifndef _ASM_BOOTINFO_H
- #define _ASM_BOOTINFO_H
-+#define CL_SIZE                COMMAND_LINE_SIZE
-+
- #include <linux/types.h>
- #include <asm/setup.h>