]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fec_mxc: add write_hwaddr support
authorHeiko Schocher <hs@denx.de>
Tue, 27 Apr 2010 05:43:52 +0000 (07:43 +0200)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 3 May 2010 21:52:49 +0000 (14:52 -0700)
tested on the magnesium board.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/fec_mxc.c

index 68be74775c6e9df82b7ac7c17f3adec694e9a9e3..57f89a37a6c9c1ec813dfa45c8f1ff82455a05ff 100644 (file)
@@ -505,7 +505,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
                miiphy_restart_aneg(dev);
 
        fec_open(dev);
-       fec_set_hwaddr(dev);
        return 0;
 }
 
@@ -713,6 +712,7 @@ static int fec_probe(bd_t *bd)
        edev->send = fec_send;
        edev->recv = fec_recv;
        edev->halt = fec_halt;
+       edev->write_hwaddr = fec_set_hwaddr;
 
        fec->eth = (struct ethernet_regs *)IMX_FEC_BASE;
        fec->bd = bd;