mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
a0b4a738e0
commit
e9cf356c0c
3 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue