From 021f6038a233bc6a60edc4adc1819492fddff9ff Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Fri, 2 Mar 2012 22:39:32 +0000 Subject: PPC: Drop mv6446x_eth_initialize() from net/eth.c This function was defined as an extern in net/eth.c, drop that and use standard means of calling it. Signed-off-by: Marek Vasut Cc: Stefan Roese --- board/Marvell/db64460/db64460.c | 6 +++++- board/Marvell/db64460/eth.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'board/Marvell/db64460') diff --git a/board/Marvell/db64460/db64460.c b/board/Marvell/db64460/db64460.c index a7836ed..d4f58b3 100644 --- a/board/Marvell/db64460/db64460.c +++ b/board/Marvell/db64460/db64460.c @@ -934,5 +934,9 @@ void board_prebootm_init () int board_eth_init(bd_t *bis) { - return pci_eth_init(bis); + int ret; + ret = pci_eth_init(bis); + if (!ret) + ret = mv6446x_eth_initialize(bis); + return ret; } diff --git a/board/Marvell/db64460/eth.h b/board/Marvell/db64460/eth.h index 6c3b2e0..59cfd6f 100644 --- a/board/Marvell/db64460/eth.h +++ b/board/Marvell/db64460/eth.h @@ -38,4 +38,6 @@ int db64460_eth0_transmit(unsigned int s, volatile char *p); void db64460_eth0_disable(void); bool network_start(bd_t *bis); +int mv6446x_eth_initialize(bd_t *); + #endif /* __EVB64460_ETH_H__ */ -- cgit v1.1