diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-04-03 05:17:21 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-04-18 22:14:20 -0400 |
commit | 9c1f1257a364467d091c5166049addaf3e7d7118 (patch) | |
tree | f57e94628587661adbe15885a4d9f7b3e7d5e57c /arch/mips/mips-boards/generic | |
parent | ba8990f2aec85b5b62643aa82a1e71c738efc487 (diff) |
[MIPS] Replace redundant declarations of _end by <asm/sections.h>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards/generic')
-rw-r--r-- | arch/mips/mips-boards/generic/memory.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/mips-boards/generic/memory.c b/arch/mips/mips-boards/generic/memory.c index 32c9210373ac..d3df1eb4b6c7 100644 --- a/arch/mips/mips-boards/generic/memory.c +++ b/arch/mips/mips-boards/generic/memory.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include <asm/bootinfo.h> | 27 | #include <asm/bootinfo.h> |
28 | #include <asm/page.h> | 28 | #include <asm/page.h> |
29 | #include <asm/sections.h> | ||
29 | 30 | ||
30 | #include <asm/mips-boards/prom.h> | 31 | #include <asm/mips-boards/prom.h> |
31 | 32 | ||
@@ -46,9 +47,6 @@ static char *mtypes[3] = { | |||
46 | }; | 47 | }; |
47 | #endif | 48 | #endif |
48 | 49 | ||
49 | /* References to section boundaries */ | ||
50 | extern char _end; | ||
51 | |||
52 | struct prom_pmemblock * __init prom_getmdesc(void) | 50 | struct prom_pmemblock * __init prom_getmdesc(void) |
53 | { | 51 | { |
54 | char *memsize_str; | 52 | char *memsize_str; |
@@ -106,7 +104,7 @@ struct prom_pmemblock * __init prom_getmdesc(void) | |||
106 | 104 | ||
107 | mdesc[3].type = yamon_dontuse; | 105 | mdesc[3].type = yamon_dontuse; |
108 | mdesc[3].base = 0x00100000; | 106 | mdesc[3].base = 0x00100000; |
109 | mdesc[3].size = CPHYSADDR(PAGE_ALIGN(&_end)) - mdesc[3].base; | 107 | mdesc[3].size = CPHYSADDR(PAGE_ALIGN((unsigned long)&_end)) - mdesc[3].base; |
110 | 108 | ||
111 | mdesc[4].type = yamon_free; | 109 | mdesc[4].type = yamon_free; |
112 | mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end)); | 110 | mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end)); |