projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a2a2d6
)
wpan-phy: add a helper to put the wpan_phy device
author
Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com>
Mon, 14 Sep 2009 14:11:03 +0000
(18:11 +0400)
committer
Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com>
Fri, 6 Nov 2009 11:10:32 +0000
(14:10 +0300)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
include/net/wpan-phy.h
patch
|
blob
|
history
diff --git
a/include/net/wpan-phy.h
b/include/net/wpan-phy.h
index
547b1e2
..
5e803a0
100644
(file)
--- 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);