[amazon] Read the size of the available memory from parameters passed to the kernel...
[openwrt-10.03/.git] / target / linux / amazon / patches-2.6.30 / 210-remove_unnedded_variables.patch
1 --- a/arch/mips/amazon/prom.c
2 +++ b/arch/mips/amazon/prom.c
3 @@ -63,9 +63,6 @@ void __init prom_init(void)
4  
5         int memsize = 16; /* assume 16M as default */
6  
7 -       mips_machgroup = MACH_GROUP_INFINEON;
8 -       mips_machtype = MACH_INFINEON_AMAZON;
9 -
10         envp = (char **)KSEG1ADDR((unsigned long)envp);
11         while (*envp) {
12                 char *e = (char *)KSEG1ADDR(*envp);