diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-03 13:07:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-18 11:11:01 +0100 |
commit | 91d28918884782a97368896b33f99976ccb017c9 (patch) | |
tree | 26a4fc7a0c84e3dcc0eb82962a9abdfb7c224784 /net | |
parent | 90613cd09ab78496b9fb6d4aa3cc118fa1a3ffcf (diff) | |
download | barebox-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |