diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-09-28 11:01:20 -0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-11-06 06:29:50 -0500 |
commit | e9cf356c0c6b975fda84b15a5abdd1db88d74f84 (patch) | |
tree | 50b66c4f169939727f7c4592a8a1b44fe13eba79 /drivers/ieee802154 | |
parent | a0b4a738e0e03f5e0d6ca366560f9a48e5adf83a (diff) |
wpan-phy: follow usual patter of devices registration
Follow the usual pattern of devices registration by adding new function
(wpan_phy_set_dev) that sets child->parent relationship and removing
parent argument from wpan_phy_register call.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'drivers/ieee802154')
-rw-r--r-- | drivers/ieee802154/fakehard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ieee802154/fakehard.c b/drivers/ieee802154/fakehard.c index f6f2afefaa17..4ea93cc7afcc 100644 --- a/drivers/ieee802154/fakehard.c +++ b/drivers/ieee802154/fakehard.c | |||
@@ -372,11 +372,12 @@ static int __devinit ieee802154fake_probe(struct platform_device *pdev) | |||
372 | goto out; | 372 | goto out; |
373 | } | 373 | } |
374 | 374 | ||
375 | wpan_phy_set_dev(phy, &pdev->dev); | ||
375 | SET_NETDEV_DEV(dev, &phy->dev); | 376 | SET_NETDEV_DEV(dev, &phy->dev); |
376 | 377 | ||
377 | platform_set_drvdata(pdev, dev); | 378 | platform_set_drvdata(pdev, dev); |
378 | 379 | ||
379 | err = wpan_phy_register(&pdev->dev, phy); | 380 | err = wpan_phy_register(phy); |
380 | if (err) | 381 | if (err) |
381 | goto out; | 382 | goto out; |
382 | 383 | ||