Use temp to pass to the reading function, the function is generic
so can't fix there.
Fixes m68k build.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
        struct nubus_dirent ent;
        int offset;
        volatile unsigned short *i;
+       u8 addr[ETH_ALEN];
 
        dev->irq = SLOT2IRQ(board->slot);
        /* This is getting to be a habit */
                return false;
        }
 
-       nubus_get_rsrc_mem(dev->dev_addr, &ent, 6);
+       nubus_get_rsrc_mem(addr, &ent, 6);
+       eth_hw_addr_set(dev, addr);
 
        if (useresources[cardtype] == 1) {
                nubus_rewinddir(&dir);