summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-01-17 00:02:10 -0600
committerWolfgang Denk <wd@denx.de>2008-02-14 00:43:02 +0100
commit3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0 (patch)
tree92f2add89c3ca9258c9dd78e496c2a309dbf45a5 /drivers
parentc77ce474b1c57b13e9d36d9830f147966c143694 (diff)
downloadu-boot-imx-3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0.zip
u-boot-imx-3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0.tar.gz
u-boot-imx-3cfb0c51b2bb5ede54eca85ace5b1ba12be314b0.tar.bz2
Remove duplicate defines for ARRAY_SIZE
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/jedec_flash.c4
-rw-r--r--drivers/net/rtl8169.c2
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 94e87cb..41aad3b 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -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;
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 57ccbd9..d71323f 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -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;