]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Remove duplicate defines for ARRAY_SIZE
authorKumar Gala <galak@kernel.crashing.org>
Mon, 18 Feb 2008 14:18:07 +0000 (08:18 -0600)
committerWolfgang Denk <wd@denx.de>
Fri, 22 Feb 2008 11:36:44 +0000 (12:36 +0100)
A few duplicate of the ARRAY_SIZE macro sneaked in since we put
the define in common.h.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/asm-ppc/fsl_law.h
include/asm-ppc/mmu.h

index 23bd5057a71a5bf8477e4e7710c628a000d07331..e955c756e8946609fb64f0b5aec4a3b63f0b17fc 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <asm/io.h>
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #define SET_LAW_ENTRY(idx, a, sz, trgt) \
        { .index = idx, .addr = a, .size = sz, .trgt_id = trgt }
 
index ec1ca53cc165dd4379b8587554d9ba1e4e7a63e1..5af22af9955f56aec859044d1848404eac4afb6f 100644 (file)
@@ -427,7 +427,6 @@ extern void disable_tlb(u8 esel);
 extern void invalidate_tlb(u8 tlb);
 extern void init_tlbs(void);
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #define SET_TLB_ENTRY(_tlb, _epn, _rpn, _perms, _wimge, _ts, _esel, _sz, _iprot) \
        { .tlb = _tlb, .epn = _epn, .rpn = _rpn, .perms = _perms, \
          .wimge = _wimge, .ts = _ts, .esel = _esel, .tsize = _sz, .iprot = _iprot }