Merge with git://www.denx.de/git/u-boot.git
[oweals/u-boot.git] / board / evb64260 / eth_addrtbl.c
index 0abc7d453693b21067a38a0286107a5da5e38e4b..e8ef0e3e52ea415fc3b85a597bc3b2772171947f 100644 (file)
@@ -55,8 +55,9 @@ unsigned int initAddressTable (u32 port, u32 hashMode, u32 hashSizeSelector)
                int bytes =
                        hashLength[hashSizeSelector] * sizeof (addrTblEntry);
 
-               tableBase = (unsigned int) realAddrTableBase[port] =
+               realAddrTableBase[port] =
                        malloc (bytes + 64);
+               tableBase = (unsigned int)realAddrTableBase;
 
                if (!tableBase) {
                        printf ("%s: alloc memory failed \n", __FUNCTION__);