diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/wpan-phy.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h index 7b7fc581e673..f63537c17363 100644 --- a/include/net/wpan-phy.h +++ b/include/net/wpan-phy.h | |||
@@ -45,7 +45,11 @@ struct wpan_phy { | |||
45 | }; | 45 | }; |
46 | 46 | ||
47 | struct wpan_phy *wpan_phy_alloc(size_t priv_size); | 47 | struct wpan_phy *wpan_phy_alloc(size_t priv_size); |
48 | int wpan_phy_register(struct device *parent, struct wpan_phy *phy); | 48 | static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) |
49 | { | ||
50 | phy->dev.parent = dev; | ||
51 | } | ||
52 | int wpan_phy_register(struct wpan_phy *phy); | ||
49 | void wpan_phy_unregister(struct wpan_phy *phy); | 53 | void wpan_phy_unregister(struct wpan_phy *phy); |
50 | void wpan_phy_free(struct wpan_phy *phy); | 54 | void wpan_phy_free(struct wpan_phy *phy); |
51 | /* Same semantics as for class_for_each_device */ | 55 | /* Same semantics as for class_for_each_device */ |