summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-08-31 10:40:51 -0700
committerBen Warren <biggerbadderben@gmail.com>2008-09-02 21:18:18 -0700
commit4fce2aceaf8afd31a252bc782c9dbc497bf40487 (patch)
tree59b70fb34c258780b76bbcc876455e11e3fa8558 /drivers/net
parente1d7480b5de1fd4830bf7cf5e2237d3b0846d08d (diff)
downloadu-boot-imx-4fce2aceaf8afd31a252bc782c9dbc497bf40487.zip
u-boot-imx-4fce2aceaf8afd31a252bc782c9dbc497bf40487.tar.gz
u-boot-imx-4fce2aceaf8afd31a252bc782c9dbc497bf40487.tar.bz2
Moved initialization of plb2800 Ethernet driver to board_eth_init
Affected boards: purple Removed initialization of controller from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/plb2800_eth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/plb2800_eth.c b/drivers/net/plb2800_eth.c
index dad842c..d799c73 100644
--- a/drivers/net/plb2800_eth.c
+++ b/drivers/net/plb2800_eth.c
@@ -26,6 +26,7 @@
#include <common.h>
#include <malloc.h>
#include <net.h>
+#include <netdev.h>
#include <asm/addrspace.h>
@@ -105,7 +106,7 @@ int plb2800_eth_initialize(bd_t * bis)
if (!(dev = (struct eth_device *) malloc (sizeof *dev)))
{
printf("Failed to allocate memory\n");
- return 0;
+ return -1;
}
memset(dev, 0, sizeof(*dev));
@@ -140,7 +141,7 @@ int plb2800_eth_initialize(bd_t * bis)
printf("Leaving plb2800_eth_initialize()\n");
#endif
- return 1;
+ return 0;
}
static int plb2800_eth_init(struct eth_device *dev, bd_t * bis)