From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v7 1/5] net: fec_mxc: Remove unneeded eth_device arg from fec_get_hwaddr
Date: Wed, 19 Oct 2016 16:53:22 +0530 [thread overview]
Message-ID: <1476876206-32048-2-git-send-email-jteki@openedev.com> (raw)
In-Reply-To: <1476876206-32048-1-git-send-email-jteki@openedev.com>
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 <jteki@openedev.com>
---
drivers/net/fec_mxc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 8e3b839..0838d58 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"))
--
2.7.4
next prev parent reply other threads:[~2016-10-19 11:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 11:23 [U-Boot] [PATCH v7 0/5] net: fec_mxc: Convert to DM Jagan Teki
2016-10-19 11:23 ` Jagan Teki [this message]
2016-10-19 11:23 ` [U-Boot] [PATCH v7 2/5] net: fec_mxc: Convert into driver model Jagan Teki
2016-10-19 17:35 ` Jagan Teki
2016-10-19 18:02 ` Joe Hershberger
2016-10-19 11:23 ` [U-Boot] [PATCH v7 3/5] net: fec_mxc: Driver cleanups Jagan Teki
2016-10-19 11:23 ` [U-Boot] [PATCH v7 4/5] ARM: dts: imx6qdl-icore: Add FEC support Jagan Teki
2016-10-19 11:23 ` [U-Boot] [PATCH v7 5/5] icorem6: Use CONFIG_DM_ETH support Jagan Teki
2016-10-20 5:59 ` [U-Boot] [PATCH v7 0/5] net: fec_mxc: Convert to DM Jagan Teki
2016-11-06 15:54 ` Jagan Teki
2016-11-14 8:26 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476876206-32048-2-git-send-email-jteki@openedev.com \
--to=jteki@openedev.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox