From: Jagan Teki Date: Mon, 5 Dec 2016 23:00:48 +0000 (+0100) Subject: net: fec_mxc: Remove unneeded eth_device arg from fec_get_hwaddr X-Git-Tag: v2017.01-rc2~6^2~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f54183e65dbf70195b1e02d9ac80110b08625cf3;p=u-boot net: fec_mxc: Remove unneeded eth_device arg from fec_get_hwaddr fec_get_hwaddr never used eth_device argument, hence removed. Cc: Simon Glass Cc: Peng Fan Cc: Stefano Babic Cc: Michael Trimarchi Acked-by: Joe Hershberger Signed-off-by: Jagan Teki --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 84021ea5be..b642770d9c 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -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"))