Remove duplicate defines for ARRAY_SIZE

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
Kumar Gala 2008-01-17 00:02:10 -06:00 committed by Wolfgang Denk
parent c77ce474b1
commit 3cfb0c51b2
4 changed files with 2 additions and 8 deletions

View file

@ -18,8 +18,6 @@
#define omap_readw(x) *(volatile unsigned short *)(x) #define omap_readw(x) *(volatile unsigned short *)(x)
#define omap_readl(x) *(volatile unsigned long *)(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_0 0xfffe1800
#define OMAP_DIE_ID_1 0xfffe1804 #define OMAP_DIE_ID_1 0xfffe1804
#define OMAP_PRODUCTION_ID_0 0xfffe2000 #define OMAP_PRODUCTION_ID_0 0xfffe2000

View file

@ -218,10 +218,6 @@ static const struct amd_flash_info jedec_table[] = {
#endif #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) static inline void fill_info(flash_info_t *info, const struct amd_flash_info *jedec_entry, ulong base)
{ {
int i,j; int i,j;

View file

@ -352,8 +352,6 @@ int mdio_read(int RegAddr)
return value; return value;
} }
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static int rtl8169_init_board(struct eth_device *dev) static int rtl8169_init_board(struct eth_device *dev)
{ {
int i; int i;

View file

@ -665,4 +665,6 @@ void inline show_boot_progress (int val);
#error Read section CONFIG_SKIP_LOWLEVEL_INIT in README. #error Read section CONFIG_SKIP_LOWLEVEL_INIT in README.
#endif #endif
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif /* __COMMON_H_ */ #endif /* __COMMON_H_ */