From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 20 Dec 2008 15:27:45 +0100 Subject: [U-Boot] [PATCH] sh: update sh2/sh2a timer coding style Message-ID: <1229783265-1359-1-git-send-email-plagnioj@jcrosoft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- lib_sh/time_sh2.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_sh/time_sh2.c b/lib_sh/time_sh2.c index 4f893c8..5c6c9d4 100644 --- a/lib_sh/time_sh2.c +++ b/lib_sh/time_sh2.c @@ -28,7 +28,7 @@ #include #include -#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) -- 1.5.6.5