]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
blackfin, powerpc: remove redundant definitions of ARRAY_SIZE
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 3 Jul 2014 04:55:51 +0000 (13:55 +0900)
committerTom Rini <trini@ti.com>
Mon, 7 Jul 2014 23:47:12 +0000 (19:47 -0400)
Since ARRAY_SIZE macro is defined in include/common.h,
re-defining it in arch-specific files is redundant.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
arch/blackfin/include/asm/config-pre.h
arch/powerpc/cpu/ppc4xx/speed.c

index d0fd537d88d0bb913c841b4eba68e011960b351d..2d8b293c3ea50825203ff7688985be6bb79b0d35 100644 (file)
@@ -9,9 +9,6 @@
 #ifndef __ASM_BLACKFIN_CONFIG_PRE_H__
 #define __ASM_BLACKFIN_CONFIG_PRE_H__
 
-/* Misc helper functions */
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
 /* Bootmode defines -- your config needs to select this via CONFIG_BFIN_BOOT_MODE.
  * Depending on your cpu, some of these may not be valid, check your HRM.
  * The actual values here are meaningless as long as they're unique.
index 7e077d5a9f28a5216219d79ab6adfc0dd5e69466..4baee7774c50a976aadb4f38b2ee0a2798d91c15 100644 (file)
@@ -19,8 +19,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #define DEBUGF(fmt,args...)
 #endif
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
 #if defined(CONFIG_405GP)
 
 void get_sys_info (PPC4xx_SYS_INFO * sysInfo)