Moved initialization of RTL8169 Ethernet controller to board_eth_init()
Affected boards: linkstation r7780mp Removed initialization of the driver from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
@@ -46,6 +46,7 @@ int greth_initialize(bd_t *bis);
|
||||
int macb_eth_initialize(int id, void *regs, unsigned int phy_addr);
|
||||
int mcdmafec_initialize(bd_t *bis);
|
||||
int mcffec_initialize(bd_t *bis);
|
||||
int rtl8169_initialize(bd_t *bis);
|
||||
int skge_initialize(bd_t *bis);
|
||||
int uli526x_initialize(bd_t *bis);
|
||||
|
||||
@@ -56,6 +57,9 @@ int uli526x_initialize(bd_t *bis);
|
||||
static inline int pci_eth_init(bd_t *bis)
|
||||
{
|
||||
int num = 0;
|
||||
#if defined(CONFIG_RTL8169)
|
||||
num += rtl8169_initialize(bis);
|
||||
#endif
|
||||
#if defined(CONFIG_ULI526)
|
||||
num += uli526x_initialize(bis);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user