summaryrefslogtreecommitdiff
path: root/arch/mips/cpu/mips32
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-06-12 18:02:43 +0200
committerTom Rini <trini@ti.com>2013-07-24 09:51:04 -0400
commitc3e4901fc66f62c6ef54b849b0f29bde1d5c0b70 (patch)
tree4e58f9e5746b7cf05c2c879916a1593836a004d8 /arch/mips/cpu/mips32
parentf1957499ea545c0ee6d2cbedd3dbc36edc26508d (diff)
downloadu-boot-imx-c3e4901fc66f62c6ef54b849b0f29bde1d5c0b70.zip
u-boot-imx-c3e4901fc66f62c6ef54b849b0f29bde1d5c0b70.tar.gz
u-boot-imx-c3e4901fc66f62c6ef54b849b0f29bde1d5c0b70.tar.bz2
MIPS: mips32/time.c: fix checkpatch errors/warnings
Checking mips32/time.c with checkpatch.pl shows this: arch/mips/cpu/mips32/time.c:30: WARNING: line over 80 characters arch/mips/cpu/mips32/time.c:57: ERROR: return is not a function, parentheses are not required total: 1 errors, 1 warnings, 0 checks, 85 lines checked Fix the code to make checkpatch.pl happy. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'arch/mips/cpu/mips32')
-rw-r--r--arch/mips/cpu/mips32/time.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/cpu/mips32/time.c b/arch/mips/cpu/mips32/time.c
index 9f5cea4..386f45a 100644
--- a/arch/mips/cpu/mips32/time.c
+++ b/arch/mips/cpu/mips32/time.c
@@ -11,7 +11,8 @@
static unsigned long timestamp;
/* how many counter cycles in a jiffy */
-#define CYCLES_PER_JIFFY (CONFIG_SYS_MIPS_TIMER_FREQ + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ
+#define CYCLES_PER_JIFFY \
+ (CONFIG_SYS_MIPS_TIMER_FREQ + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ
/*
* timer without interrupts
@@ -38,7 +39,7 @@ ulong get_timer(ulong base)
}
write_c0_compare(expirelo);
- return (timestamp - base);
+ return timestamp - base;
}
void __udelay(unsigned long usec)