Moved initialization of EEPRO100 Ethernet controller to board_eth_init()
Affected boards:
db64360
db64460
katmai
taihu
taishan
yucca
cpc45
cpu87
eXalion
elppc
debris
kvme080
mpc8315erdb
integratorap
ixdp425
oxc
pm826
pm828
pm854
pm856
ppmc7xx
sc3
sc520_spunk
sorcery
tqm8272
tqm85xx
utx8245
Removed initialization of the driver from net/eth.c
Also, wrapped contents of pci_eth_init() by CONFIG_PCI.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
diff --git a/include/netdev.h b/include/netdev.h
index d8d1209..8b181f7 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -44,6 +44,7 @@
int bfin_EMAC_initialize(bd_t *bis);
int dc21x4x_initialize(bd_t *bis);
int e1000_initialize(bd_t *bis);
+int eepro100_initialize(bd_t *bis);
int eth_3com_initialize (bd_t * bis);
int greth_initialize(bd_t *bis);
void gt6426x_eth_initialize(bd_t *bis);
@@ -71,6 +72,11 @@
{
int num = 0;
+#ifdef CONFIG_PCI
+
+#ifdef CONFIG_EEPRO100
+ num += eepro100_initialize(bis);
+#endif
#ifdef CONFIG_TULIP
num += dc21x4x_initialize(bis);
#endif
@@ -95,6 +101,8 @@
#if defined(CONFIG_ULI526)
num += uli526x_initialize(bis);
#endif
+
+#endif /* CONFIG_PCI */
return num;
}