summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-02-03 13:07:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-02-18 11:11:01 +0100
commit91d28918884782a97368896b33f99976ccb017c9 (patch)
tree26a4fc7a0c84e3dcc0eb82962a9abdfb7c224784 /net
parent90613cd09ab78496b9fb6d4aa3cc118fa1a3ffcf (diff)
downloadbarebox-91d28918884782a97368896b33f99976ccb017c9.tar.gz
barebox-91d28918884782a97368896b33f99976ccb017c9.tar.xz
network: initialize new net device id with -1
This autoassigns a id to network devices and makes multiple network devices work again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index 8333d80c8f..9eae17cb6d 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -151,6 +151,7 @@ int eth_register(struct eth_device *edev)
}
strcpy(edev->dev.name, "eth");
+ edev->dev.id = -1;
register_device(&edev->dev);
dev->type_data = edev;