diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-03 22:43:57 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-03 22:43:57 +0200 |
commit | 16116ddd0d0158f4e91c91dc979b845b6e98a99d (patch) | |
tree | e2062a888c76462b6335da29092c5fe4134c0859 /drivers/net/plb2800_eth.c | |
parent | 628ffd73bcff0c9f3bc5a8eeb2c7455fe9d28a51 (diff) | |
parent | be1b0d2777e179191a57b138b660547a17e55aad (diff) | |
download | u-boot-imx-16116ddd0d0158f4e91c91dc979b845b6e98a99d.zip u-boot-imx-16116ddd0d0158f4e91c91dc979b845b6e98a99d.tar.gz u-boot-imx-16116ddd0d0158f4e91c91dc979b845b6e98a99d.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/plb2800_eth.c')
-rw-r--r-- | drivers/net/plb2800_eth.c | 5 |
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) |