diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2011-12-14 05:31:20 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-12 10:11:28 +0100 |
commit | 6a23f3116239b88e0eebbc121ccecf8452d7921c (patch) | |
tree | 80c696180b3718b9fe3d45ae39ed3c52aeee4abb /board/keymile/km_arm | |
parent | 9e9c6d7cf668673c18c56951dffb0abfc1f7254b (diff) | |
download | u-boot-imx-6a23f3116239b88e0eebbc121ccecf8452d7921c.zip u-boot-imx-6a23f3116239b88e0eebbc121ccecf8452d7921c.tar.gz u-boot-imx-6a23f3116239b88e0eebbc121ccecf8452d7921c.tar.bz2 |
arm/km: checkpatch cleanup
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/keymile/km_arm')
-rw-r--r-- | board/keymile/km_arm/km_arm.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index ca33aae..9e9940c 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -416,13 +416,13 @@ const ulong REPEAT_PATTERN = 1000; void bootcount_store(ulong a) { - volatile ulong *save_addr; - volatile ulong size = 0; + ulong *save_addr; + ulong size = 0; int i; - for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { + + for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) size += gd->bd->bi_dram[i].size; - } - save_addr = (ulong*)(size - BOOTCOUNT_ADDR); + save_addr = (ulong *)(size - BOOTCOUNT_ADDR); writel(a, save_addr); writel(BOOTCOUNT_MAGIC, &save_addr[1]); @@ -434,15 +434,14 @@ void bootcount_store(ulong a) ulong bootcount_load(void) { - volatile ulong *save_addr; - volatile ulong size = 0; + ulong *save_addr; + ulong size = 0; ulong counter = 0; int i, tmp; - for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { + for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) size += gd->bd->bi_dram[i].size; - } - save_addr = (ulong*)(size - BOOTCOUNT_ADDR); + save_addr = (ulong *)(size - BOOTCOUNT_ADDR); counter = readl(&save_addr[0]); @@ -492,13 +491,13 @@ int post_hotkeys_pressed(void) ulong post_word_load(void) { - volatile void* addr = (void *) (gd->ram_size - BOOTCOUNT_ADDR + POST_WORD_OFF); + void* addr = (void *) (gd->ram_size - BOOTCOUNT_ADDR + POST_WORD_OFF); return in_le32(addr); } void post_word_store(ulong value) { - volatile void* addr = (void *) (gd->ram_size - BOOTCOUNT_ADDR + POST_WORD_OFF); + void* addr = (void *) (gd->ram_size - BOOTCOUNT_ADDR + POST_WORD_OFF); out_le32(addr, value); } |