summaryrefslogtreecommitdiffstats
path: root/lib_sh
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-12-20 15:27:45 +0100
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2009-01-16 10:22:26 +0900
commit85cb052ee41675ca361e6a4c69455dc715c8f2d9 (patch)
tree29651d684e0e6c93daae529e1ce3c38003e8e07f /lib_sh
parent1e15ff999322e81af4c0c0c548908f38944ba39c (diff)
downloadu-boot-85cb052ee41675ca361e6a4c69455dc715c8f2d9.tar.gz
u-boot-85cb052ee41675ca361e6a4c69455dc715c8f2d9.tar.xz
u-boot-85cb052ee41675ca361e6a4c69455dc715c8f2d9.zip
sh: update sh2/sh2a timer coding style
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'lib_sh')
-rw-r--r--lib_sh/time_sh2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_sh/time_sh2.c b/lib_sh/time_sh2.c
index 4f893c87bd..5c6c9d4384 100644
--- a/lib_sh/time_sh2.c
+++ b/lib_sh/time_sh2.c
@@ -28,7 +28,7 @@
#include <asm/io.h>
#include <asm/processor.h>
-#define CMT_CMCSR_INIT 0x0001 /* PCLK/32 */
+#define CMT_CMCSR_INIT 0x0001 /* PCLK/32 */
#define CMT_CMCSR_CALIB 0x0000
#define CMT_MAX_COUNTER (0xFFFFFFFF)
#define CMT_TIMER_RESET (0xFFFF)
@@ -87,7 +87,7 @@ static unsigned long get_usec (void)
/* return msec */
ulong get_timer(ulong base)
{
- return (get_usec()/1000) - base;
+ return (get_usec() / 1000) - base;
}
void set_timer(ulong t)