diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-01 11:53:07 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-01 11:53:07 +0000 |
commit | 37efe6427dd50e889473fb3c7fcec02dbbd098eb (patch) | |
tree | d5a6b3e6fbd5d60a1a145f5801002e96bcb9af9e /arch/arm/mm/nommu.c | |
parent | 112243034cec7c3ef0499fdebf39218714da453d (diff) | |
download | op-kernel-dev-37efe6427dd50e889473fb3c7fcec02dbbd098eb.zip op-kernel-dev-37efe6427dd50e889473fb3c7fcec02dbbd098eb.tar.gz |
[ARM] use asm/sections.h
Update to use the asm/sections.h header rather than declaring these
symbols ourselves. Change __data_start to _data to conform with the
naming found within asm/sections.h.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/nommu.c')
-rw-r--r-- | arch/arm/mm/nommu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index c085f4e..ad7bacc 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c @@ -10,6 +10,7 @@ #include <linux/io.h> #include <asm/cacheflush.h> +#include <asm/sections.h> #include <asm/page.h> #include <asm/mach/arch.h> @@ -25,10 +26,10 @@ void __init reserve_node_zero(pg_data_t *pgdat) * Note that this can only be in node 0. */ #ifdef CONFIG_XIP_KERNEL - reserve_bootmem_node(pgdat, __pa(&__data_start), &_end - &__data_start, + reserve_bootmem_node(pgdat, __pa(_data), _end - _data, BOOTMEM_DEFAULT); #else - reserve_bootmem_node(pgdat, __pa(&_stext), &_end - &_stext, + reserve_bootmem_node(pgdat, __pa(_stext), _end - _stext, BOOTMEM_DEFAULT); #endif |