summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-11-15 22:50:52 +0100
committerWolfgang Denk <wd@denx.de>2009-11-15 22:50:52 +0100
commit3c014f1586d5bfe30dca7549396915c83f31cd30 (patch)
treef2061f0e5bdb31918f7efca54b80e06033195132 /drivers
parent7b18e8c90cbf5f8e42769bbb711314fcf28c7768 (diff)
parentfbd47b6753b08162436d9ccad1e63c8d43ede54c (diff)
downloadu-boot-imx-3c014f1586d5bfe30dca7549396915c83f31cd30.zip
u-boot-imx-3c014f1586d5bfe30dca7549396915c83f31cd30.tar.gz
u-boot-imx-3c014f1586d5bfe30dca7549396915c83f31cd30.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/smc911x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index c50758e..c027abe 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -243,7 +243,7 @@ int smc911x_initialize(u8 dev_num, int base_addr)
dev = malloc(sizeof(*dev));
if (!dev) {
free(dev);
- return 0;
+ return -1;
}
memset(dev, 0, sizeof(*dev));
@@ -271,5 +271,5 @@ int smc911x_initialize(u8 dev_num, int base_addr)
sprintf(dev->name, "%s-%hu", DRIVERNAME, dev_num);
eth_register(dev);
- return 0;
+ return 1;
}