mtd/uclinux: Use generic __bss_stop instead of _ebss

The standard (see BSS_SECTION() in <asm-generic/vmlinux.lds.h> and
<asm-generic/sections.h>) symbol for the end of BSS is __bss_stop.
This allows to remove all local declarations that have been added to
several architectures just to please CONFIG_MTD_UCLINUX.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Paul Mundt <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
Acked-by: Michal Simek <[email protected]>
Acked-by: Greg Ungerer <[email protected]>
This commit is contained in:
Geert Uytterhoeven 2012-05-31 22:39:21 +02:00
commit 363737d664
11 changed files with 8 additions and 23 deletions

View file

@ -19,14 +19,13 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <asm/io.h>
#include <asm/sections.h>
/****************************************************************************/
extern char _ebss;
struct map_info uclinux_ram_map = {
.name = "RAM",
.phys = (unsigned long)&_ebss,
.phys = (unsigned long)__bss_stop,
.size = 0,
};