diff options
author | roy zang <tie-fei.zang@freescale.com> | 2006-12-01 11:47:36 +0800 |
---|---|---|
committer | Zang Tiefei <roy@bus.ap.freescale.net> | 2006-12-01 11:47:36 +0800 |
commit | ee311214e0d216f904feea269599d0934bf71f23 (patch) | |
tree | 8f942227d016d8cc52a12f4b66a02e4b1e7ed19b /cpu/74xx_7xx/cpu.c | |
parent | 6bd87c0aeea441c49d59fd542b84a9be88d08b17 (diff) | |
download | u-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.zip u-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.tar.gz u-boot-imx-ee311214e0d216f904feea269599d0934bf71f23.tar.bz2 |
Clean up the code according to codestyle:
(1) remove some C++ comments.
(2) remove trailing white space.
(3) remove trailing empty line.
(4) Indentation by table.
(5) remove {} in one line condition.
(6) add space before '(' in function call.
Remove some weird printf () output.
Add necessary comments.
Modified Makefile to support building in a separate directory.
Diffstat (limited to 'cpu/74xx_7xx/cpu.c')
-rw-r--r-- | cpu/74xx_7xx/cpu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpu/74xx_7xx/cpu.c b/cpu/74xx_7xx/cpu.c index c3aadca..fc3b092 100644 --- a/cpu/74xx_7xx/cpu.c +++ b/cpu/74xx_7xx/cpu.c @@ -303,7 +303,7 @@ watchdog_reset(void) #ifdef CONFIG_OF_FLAT_TREE void -ft_cpu_setup(void *blob, bd_t *bd) +ft_cpu_setup (void *blob, bd_t *bd) { u32 *p; ulong clock; @@ -311,18 +311,18 @@ ft_cpu_setup(void *blob, bd_t *bd) clock = bd->bi_busfreq; - p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len); + p = ft_get_prop (blob, "/cpus/" OF_CPU "/bus-frequency", &len); if (p != NULL) - *p = cpu_to_be32(clock); + *p = cpu_to_be32 (clock); #if defined(CONFIG_TSI108_ETH) - p = ft_get_prop(blob, "/" OF_TSI "/ethernet@6200/address", &len); - memcpy(p, bd->bi_enetaddr, 6); + p = ft_get_prop (blob, "/" OF_TSI "/ethernet@6200/address", &len); + memcpy (p, bd->bi_enetaddr, 6); #endif - + #if defined(CONFIG_HAS_ETH1) - p = ft_get_prop(blob, "/" OF_TSI "/ethernet@6600/address", &len); - memcpy(p, bd->bi_enet1addr, 6); + p = ft_get_prop (blob, "/" OF_TSI "/ethernet@6600/address", &len); + memcpy (p, bd->bi_enet1addr, 6); #endif } #endif |