diff options
author | Wolfgang Denk <wd@denx.de> | 2009-11-15 22:50:52 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-11-15 22:50:52 +0100 |
commit | 3c014f1586d5bfe30dca7549396915c83f31cd30 (patch) | |
tree | f2061f0e5bdb31918f7efca54b80e06033195132 /drivers | |
parent | 7b18e8c90cbf5f8e42769bbb711314fcf28c7768 (diff) | |
parent | fbd47b6753b08162436d9ccad1e63c8d43ede54c (diff) | |
download | u-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.c | 4 |
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; } |