summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-05-10 11:37:35 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:37 +0200
commita35925b8c10c99a7020bfcda74c8a6c72ed90cf5 (patch)
tree897969251fd788554a574d944fc173cb61891b2c /arch/arm
parent3ddecfc74086aa185a2f671cc07cb826b72d35f0 (diff)
downloadu-boot-imx-a35925b8c10c99a7020bfcda74c8a6c72ed90cf5.zip
u-boot-imx-a35925b8c10c99a7020bfcda74c8a6c72ed90cf5.tar.gz
u-boot-imx-a35925b8c10c99a7020bfcda74c8a6c72ed90cf5.tar.bz2
Add abs() macro to return absolute value
This macro is generally useful to make it available in common. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com> Acked-by: Tom Rini <trini@ti.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap4/clocks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap4/clocks.c b/arch/arm/cpu/armv7/omap4/clocks.c
index dd694c4..3f0dfd7 100644
--- a/arch/arm/cpu/armv7/omap4/clocks.c
+++ b/arch/arm/cpu/armv7/omap4/clocks.c
@@ -46,8 +46,6 @@
#define puts(s)
#endif
-#define abs(x) (((x) < 0) ? ((x)*-1) : (x))
-
struct omap4_prcm_regs *const prcm = (struct omap4_prcm_regs *)0x4A004100;
const u32 sys_clk_array[8] = {