]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fec_mxc: Remove unneeded eth_device arg from fec_get_hwaddr
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 5 Dec 2016 23:00:48 +0000 (00:00 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 16 Dec 2016 16:15:27 +0000 (17:15 +0100)
fec_get_hwaddr never used eth_device argument, hence removed.

Cc: Simon Glass <sjg@chromium.org>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/net/fec_mxc.c

index 84021ea5bec553fba2469be9867ecf1af7abbcb7..b642770d9c9701c2979e5068da748bd3788c7132 100644 (file)
@@ -362,8 +362,7 @@ static void fec_rbd_clean(int last, struct fec_bd *pRbd)
        writew(0, &pRbd->data_length);
 }
 
-static int fec_get_hwaddr(struct eth_device *dev, int dev_id,
-                                               unsigned char *mac)
+static int fec_get_hwaddr(int dev_id, unsigned char *mac)
 {
        imx_get_mac_from_fuse(dev_id, mac);
        return !is_valid_ethaddr(mac);
@@ -1045,7 +1044,7 @@ static int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr,
 #endif
        eth_register(edev);
 
-       if (fec_get_hwaddr(edev, dev_id, ethaddr) == 0) {
+       if (fec_get_hwaddr(dev_id, ethaddr) == 0) {
                debug("got MAC%d address from fuse: %pM\n", dev_id, ethaddr);
                memcpy(edev->enetaddr, ethaddr, 6);
                if (!getenv("ethaddr"))