]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:30 +0000 (21:47 +0200)
commit5cce2f820ce174e50106142a8d0997e3fa76f1dc
tree4547199bc9015abc37893ce1c4ee6af5fa630d05
parent80e725d2dcdd2adfcb79244eff7dc412c0a8c1db
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