summaryrefslogtreecommitdiffstats
path: root/include/net/wpan-phy.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-09-14 16:11:03 +0200
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-06 12:10:32 +0100
commit69d9ab96f983720b7794e91437bd9c5f83bae9f7 (patch)
treefbf4312751ac537fa48c5bd0203ed76c6b975044 /include/net/wpan-phy.h
parenttcp: Use defaults when no route options are available (diff)
downloadlinux-69d9ab96f983720b7794e91437bd9c5f83bae9f7.tar.xz
linux-69d9ab96f983720b7794e91437bd9c5f83bae9f7.zip
wpan-phy: add a helper to put the wpan_phy device
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to '')
-rw-r--r--include/net/wpan-phy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h
index 547b1e271ac9..5e803a0e4e72 100644
--- a/include/net/wpan-phy.h
+++ b/include/net/wpan-phy.h
@@ -56,6 +56,12 @@ static inline void *wpan_phy_priv(struct wpan_phy *phy)
}
struct wpan_phy *wpan_phy_find(const char *str);
+
+static inline void wpan_phy_put(struct wpan_phy *phy)
+{
+ put_device(&phy->dev);
+}
+
static inline const char *wpan_phy_name(struct wpan_phy *phy)
{
return dev_name(&phy->dev);