net: r6040: Return proper error for r6040_init_one
commit9c86c0f4ba49b39f909d7f18731b91e563e07065
authorAxel Lin <axel.lin@gmail.com>
Tue, 4 Jan 2011 22:40:04 +0000 (4 22:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2011 19:18:07 +0000 (6 11:18 -0800)
tree70a179d53210068875525163f3350f7665bb9dae
parent2a8fe003741aa90b6b9453e90af4bbb7bc42918c
net: r6040: Return proper error for r6040_init_one

Return -ENOMEM instead of 0 for the case of mdiobus_alloc and kmalloc failure.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r6040.c