From a49d10cf027d059ee15c262010a05cdaec0961e1 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Mon, 25 Aug 2008 23:45:41 +0200 Subject: Minor coding style cleanup, updte CHANGELOG Signed-off-by: Wolfgang Denk --- cpu/mpc5xxx/cpu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cpu') diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index d87f42c..0ed2899 100644 --- a/cpu/mpc5xxx/cpu.c +++ b/cpu/mpc5xxx/cpu.c @@ -140,18 +140,18 @@ void ft_cpu_setup(void *blob, bd_t *bd) void bootcount_store (ulong a) { - volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB); + volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB); - *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a; + *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a; } ulong bootcount_load (void) { - volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB); + volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB); - if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000)) - return 0; - else - return (*save_addr & 0x0000ffff); + if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000)) + return 0; + else + return (*save_addr & 0x0000ffff); } #endif /* CONFIG_BOOTCOUNT_LIMIT */ -- cgit v1.1