summaryrefslogtreecommitdiffstats
path: root/drivers/net/4xx_enet.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-03-22 17:09:06 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:11 -0600
commitd2eaec600617346a143a07bb073466add7a68e97 (patch)
tree8dd62a6e4142cab8322cdea1a67bda9d5dc62b2c /drivers/net/4xx_enet.c
parentfce6900b492c18962a098eae837ea345b75f9a75 (diff)
downloadtalos-obmc-uboot-d2eaec600617346a143a07bb073466add7a68e97.tar.gz
talos-obmc-uboot-d2eaec600617346a143a07bb073466add7a68e97.zip
net: Remove the bd* parameter from net stack functions
This value is not used by the network stack and is available in the global data, so stop passing it around. For the one legacy function that still expects it (init op on old Ethernet drivers) pass in the global pointer version directly to avoid changing that interface. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reported-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> (Trival fix to remove an unneeded variable declaration in 4xx_enet.c)
Diffstat (limited to 'drivers/net/4xx_enet.c')
-rw-r--r--drivers/net/4xx_enet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 381ec42864..878f1b2533 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -1719,8 +1719,6 @@ static void mal_err (struct eth_device *dev, unsigned long isr,
unsigned long uic, unsigned long maldef,
unsigned long mal_errr)
{
- EMAC_4XX_HW_PST hw_p = dev->priv;
-
mtdcr (MAL0_ESR, isr); /* clear interrupt */
/* clear DE interrupt */
@@ -1728,10 +1726,11 @@ static void mal_err (struct eth_device *dev, unsigned long isr,
mtdcr (MAL0_RXDEIR, 0x80000000);
#ifdef INFO_4XX_ENET
- printf ("\nMAL error occured.... ISR = %lx UIC = = %lx MAL_DEF = %lx MAL_ERR= %lx \n", isr, uic, maldef, mal_errr);
+ printf("\nMAL error occured.... ISR = %lx UIC = = %lx MAL_DEF = %lx MAL_ERR= %lx\n",
+ isr, uic, maldef, mal_errr);
#endif
- eth_init (hw_p->bis); /* start again... */
+ eth_init(); /* start again... */
}
/*-----------------------------------------------------------------------------+
OpenPOWER on IntegriCloud