From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: linux-zigbee-devel@lists.sourceforge.net,
Sergey Lapin <slapin@ossfans.org>,
netdev@vger.kernel.org
Subject: [PATCH 3/7] ieee802154: add a helper to put the wpan_phy device
Date: Wed, 16 Sep 2009 02:13:01 +0400 [thread overview]
Message-ID: <1253052785-26190-4-git-send-email-dbaryshkov@gmail.com> (raw)
In-Reply-To: <1253052785-26190-3-git-send-email-dbaryshkov@gmail.com>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
include/net/wpan-phy.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h
index 547b1e2..5e803a0 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);
--
1.6.3.3
next prev parent reply other threads:[~2009-09-15 22:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 22:12 [GIT PULL 0/7] Small IEEE 802.15.4 updates Dmitry Eremin-Solenikov
2009-09-15 22:12 ` [PATCH 1/7] af_ieee802154: setsockopt optlen arg isn't __user Dmitry Eremin-Solenikov
2009-09-15 22:13 ` [PATCH 2/7] ieee802154: add locking for seq numbers Dmitry Eremin-Solenikov
2009-09-15 22:13 ` Dmitry Eremin-Solenikov [this message]
2009-09-15 22:13 ` [PATCH 4/7] ieee802154: add wpan-phy iteration functions Dmitry Eremin-Solenikov
2009-09-15 22:13 ` [PATCH 5/7] ieee802154: merge nl802154 and wpan-class in single module Dmitry Eremin-Solenikov
2009-09-15 22:13 ` [PATCH 6/7] nl802154: split away MAC commands implementation Dmitry Eremin-Solenikov
2009-09-15 22:13 ` [PATCH 7/7] ieee802154: add LIST_PHY command support Dmitry Eremin-Solenikov
2009-09-16 6:44 ` [GIT PULL 0/7] Small IEEE 802.15.4 updates David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253052785-26190-4-git-send-email-dbaryshkov@gmail.com \
--to=dbaryshkov@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-zigbee-devel@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
--cc=slapin@ossfans.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).