From patchwork Tue Sep 15 22:13:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 33673 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 58E31B7B93 for ; Wed, 16 Sep 2009 08:14:17 +1000 (EST) Received: by ozlabs.org (Postfix) id 45847DDDA0; Wed, 16 Sep 2009 08:14:17 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id D63BDDDD0C for ; Wed, 16 Sep 2009 08:14:16 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758723AbZIOWOC (ORCPT ); Tue, 15 Sep 2009 18:14:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751917AbZIOWOA (ORCPT ); Tue, 15 Sep 2009 18:14:00 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:42420 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752360AbZIOWN5 (ORCPT ); Tue, 15 Sep 2009 18:13:57 -0400 Received: by mail-ew0-f206.google.com with SMTP id 2so922680ewy.17 for ; Tue, 15 Sep 2009 15:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=JzqcxB4CbVGQ7cTBFEivVY23OrYPyJ8C7YqMwOIIaGM=; b=vQCRloJmexyuUl1yNWtzn7KmmiiLQp9TVX65aPZSpll5FNePQKCqKLyXKzbxpQQhaW DGopFo+0rslCUP4spi7vS1wkssVy321gcBOsMFatYWRQjfScckMntj+yTpkzUVx/IusP pfIS/bNgzZ4etttEp7s+Vf00XT1lS4QUvx/F8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=TSdM5AIaEKkZE83znKC2hYSFiYJhwJVz6FcwXMH+jUlmHLJIwc1l1Oprrx3f/sHb6n NxGawbvcIf5CCX5f2a8fTdxEDvXkYC+ENHVpa4RLGYRD0eWZJCd3vD2zgxP2Nv9xAMvx ufo5kT3G5S0dngV6+hZJFQBaZBt/jm19I0PbY= Received: by 10.211.173.20 with SMTP id a20mr9169055ebp.33.1253052840662; Tue, 15 Sep 2009 15:14:00 -0700 (PDT) Received: from localhost.localdomain (ppp91-122-8-155.pppoe.avangarddsl.ru [91.122.8.155]) by mx.google.com with ESMTPS id 7sm381518eyb.37.2009.09.15.15.13.59 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Sep 2009 15:13:59 -0700 (PDT) From: Dmitry Eremin-Solenikov To: "David S. Miller" Cc: linux-zigbee-devel@lists.sourceforge.net, Sergey Lapin , 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 Message-Id: <1253052785-26190-4-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1253052785-26190-3-git-send-email-dbaryshkov@gmail.com> References: <1253052785-26190-1-git-send-email-dbaryshkov@gmail.com> <1253052785-26190-2-git-send-email-dbaryshkov@gmail.com> <1253052785-26190-3-git-send-email-dbaryshkov@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov --- 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);