]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Moved initialization of SKGE Ethernet driver to board code.
authorBen Warren <biggerbadderben@gmail.com>
Sat, 12 Jul 2008 07:17:50 +0000 (00:17 -0700)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 27 Aug 2008 05:18:08 +0000 (22:18 -0700)
The only board using this driver is the SL8245 board.
Removed initialization for the driver from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
board/sl8245/sl8245.c
drivers/net/sk98lin/uboot_drv.c
net/eth.c

index 86478871bcbd52e08c89abfa0a960d2d91888205..c853755a1c6c14852952ff57a353991ba94f3da8 100644 (file)
@@ -66,3 +66,16 @@ void pci_init_board(void)
 {
        pci_mpc824x_init(&hose);
 }
+
+extern int skge_initialize(bd_t *bis);
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+
+#if defined(CONFIG_SK98)
+       rc = skge_initialize(bis);
+#endif
+       return rc;
+}
+
index 8b04842c1a52845cc2f9e5e031686b32061daf93..205e7d2e9903de76c2e3906929fea89835fd091d 100644 (file)
@@ -70,7 +70,7 @@ int skge_initialize(bd_t * bis)
                eth_register(dev[i]);
        }
 
-       return numdev;
+       return ((numdev > 0) && (numdev <= SKGE_MAX_CARDS) ? 0 : -1);
 }
 
 
index 0ad9907f83870e9a89c051ef6cf7a3b24d69d334..4e508a0f91b72ffee374c4326f843a1ce993f468 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -63,7 +63,6 @@ extern int ppc_4xx_eth_initialize(bd_t *);
 extern int rtl8139_initialize(bd_t*);
 extern int rtl8169_initialize(bd_t*);
 extern int scc_initialize(bd_t*);
-extern int skge_initialize(bd_t*);
 extern int tsi108_eth_initialize(bd_t*);
 extern int npe_initialize(bd_t *);
 extern int uec_initialize(int);
@@ -200,9 +199,6 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_MPC8220_FEC)
        mpc8220_fec_initialize(bis);
 #endif
-#if defined(CONFIG_SK98)
-       skge_initialize(bis);
-#endif
 #if defined(CONFIG_UEC_ETH1)
        uec_initialize(0);
 #endif