net: Remove the bd* parameter from net stack functions
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:06 +0000 (17:09 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:11 +0000 (11:11 -0600)
commitd2eaec600617346a143a07bb073466add7a68e97
tree8dd62a6e4142cab8322cdea1a67bda9d5dc62b2c
parentfce6900b492c18962a098eae837ea345b75f9a75
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)
21 files changed:
api/api_net.c
arch/arm/lib/board.c
arch/avr32/lib/board.c
arch/nds32/lib/board.c
arch/openrisc/lib/board.c
arch/powerpc/lib/board.c
arch/sh/lib/board.c
arch/sparc/lib/board.c
board/BuS/eb_cpux9k2/cpux9k2.c
board/BuS/vl_ma2sc/vl_ma2sc.c
board/atmel/at91sam9261ek/at91sam9261ek.c
board/egnite/ethernut5/ethernut5.c
board/ronetix/pm9261/pm9261.c
board/ronetix/pm9g45/pm9g45.c
common/board_r.c
common/spl/spl_net.c
drivers/net/4xx_enet.c
drivers/net/netconsole.c
include/net.h
net/eth.c
net/net.c