]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove duplicate defines for ARRAY_SIZE
authorKumar Gala <galak@kernel.crashing.org>
Thu, 17 Jan 2008 06:02:10 +0000 (00:02 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 13 Feb 2008 23:43:02 +0000 (00:43 +0100)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/arm926ejs/cpuinfo.c
drivers/mtd/jedec_flash.c
drivers/net/rtl8169.c
include/common.h

index 8c9863161ad49b039f45f848734fc8387c13d28d..35ba7dba0f5d248646afece5e68b204fdff04226 100644 (file)
@@ -18,8 +18,6 @@
 #define omap_readw(x)          *(volatile unsigned short *)(x)
 #define omap_readl(x)          *(volatile unsigned long *)(x)
 
-#define ARRAY_SIZE(x)          (sizeof(x) / sizeof((x)[0]))
-
 #define OMAP_DIE_ID_0          0xfffe1800
 #define OMAP_DIE_ID_1          0xfffe1804
 #define OMAP_PRODUCTION_ID_0   0xfffe2000
index 94e87cbf004b405cc8e5d9ad80ea2e109e109d79..41aad3bd6a5f28e230aa3e8b695f4dc2319c3eea 100644 (file)
@@ -218,10 +218,6 @@ static const struct amd_flash_info jedec_table[] = {
 #endif
 };
 
-
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
-
 static inline void fill_info(flash_info_t *info, const struct amd_flash_info *jedec_entry, ulong base)
 {
        int i,j;
index 57ccbd964f7e5e453ba7cf862e6f457d2995f9ed..d71323f7f41858942b5373bfa04641c96e57d415 100644 (file)
@@ -352,8 +352,6 @@ int mdio_read(int RegAddr)
        return value;
 }
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
 static int rtl8169_init_board(struct eth_device *dev)
 {
        int i;
index c4ee3e2df68247b545c6dc300deaa8439639f9d6..75fb676458a25b009adb2afab3208066fab87c3b 100644 (file)
@@ -665,4 +665,6 @@ void inline show_boot_progress (int val);
 #error Read section CONFIG_SKIP_LOWLEVEL_INIT in README.
 #endif
 
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
 #endif /* __COMMON_H_ */