summaryrefslogtreecommitdiffstats
path: root/net/eth.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-03 15:56:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-12 08:41:52 +0100
commitf4ca20c4d27751ee749f382cfd4949d825534fce (patch)
tree7e6d5d5a86d194e64ae7708f43c88050d330b7a5 /net/eth.c
parent345299e94c196024bc288cb9b132f966cfd49538 (diff)
downloadbarebox-f4ca20c4d27751ee749f382cfd4949d825534fce.tar.gz
barebox-f4ca20c4d27751ee749f382cfd4949d825534fce.tar.xz
eth: register device a pure device
as we do not need to probe them and they have no driver or bus attached Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index f3d7bfea59..220edcfade 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -261,7 +261,7 @@ int eth_register(struct eth_device *edev)
if (edev->parent)
dev_add_child(edev->parent, &edev->dev);
- platform_device_register(&edev->dev);
+ register_device(&edev->dev);
dev_add_param(dev, "ipaddr", eth_set_ipaddr, NULL, 0);
dev_add_param(dev, "ethaddr", eth_set_ethaddr, NULL, 0);