From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Date: Mon, 14 Sep 2009 14:11:03 +0000 (+0400)
Subject: wpan-phy: add a helper to put the wpan_phy device
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69d9ab96f983720b7794e91437bd9c5f83bae9f7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

wpan-phy: add a helper to put the wpan_phy device

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---

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);