diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-09-28 19:01:20 +0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-11-06 14:29:50 +0300 |
commit | e9cf356c0c6b975fda84b15a5abdd1db88d74f84 (patch) | |
tree | 50b66c4f169939727f7c4592a8a1b44fe13eba79 /net/ieee802154 | |
parent | a0b4a738e0e03f5e0d6ca366560f9a48e5adf83a (diff) | |
download | lwn-e9cf356c0c6b975fda84b15a5abdd1db88d74f84.tar.gz lwn-e9cf356c0c6b975fda84b15a5abdd1db88d74f84.zip |
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 'net/ieee802154')
-rw-r--r-- | net/ieee802154/wpan-class.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ieee802154/wpan-class.c b/net/ieee802154/wpan-class.c index 0c51f85aa591..cd42e88b8397 100644 --- a/net/ieee802154/wpan-class.c +++ b/net/ieee802154/wpan-class.c @@ -168,10 +168,8 @@ struct wpan_phy *wpan_phy_alloc(size_t priv_size) } EXPORT_SYMBOL(wpan_phy_alloc); -int wpan_phy_register(struct device *parent, struct wpan_phy *phy) +int wpan_phy_register(struct wpan_phy *phy) { - phy->dev.parent = parent; - return device_add(&phy->dev); } EXPORT_SYMBOL(wpan_phy_register); |