From patchwork Mon Mar 30 09:19:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 46474 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 48233214C7 for ; Mon, 30 Mar 2015 09:19:09 +0000 (UTC) Received: by ykek76 with SMTP id k76sf120710505yke.2 for ; Mon, 30 Mar 2015 02:19:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Zbv41Q8h6u7nvcebbvY6ctlQEii2o+xVffEPNNKsJ8g=; b=cVHBy8t5ElcpH8VU95miE1l61Sj4FXOjXLHsWfYgxmPYGCGfnbG+Dxx0ttAX6o6C0s W3uHrzFNYXRGqF0UjOfCoI178xzRKFUi0WA3FfrBgF0C//GHym9FqaJjoX1G83VGK1TL bNIRzSuCjy75qUWxHSd121PS4pdEs0pwoYrtQuOOKyGjIJoPu90UmvKdbFdpik+PGlqh INiYmSdSlgn+VxC7gOQSwhpAr364R9fHXN1qs+FnlT7pMG/+RRpcaIWl5TMYYP8DXQYW 77olQJrfGomiXagJtecFl/R33ENctLZTlTf1/LD7zKZk/LJWu96v0MFr/FUr62gGl+Vm vcUQ== X-Gm-Message-State: ALoCoQnCp+8tg/Q3ojbAvi4rVS8lq4yKm7ojPitXWxJiEZkpuNCU/8WCgMPc9fq8hsoCGVTc8t7D X-Received: by 10.236.41.164 with SMTP id h24mr37383203yhb.32.1427707149107; Mon, 30 Mar 2015 02:19:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.33 with SMTP id 30ls2171476qga.19.gmail; Mon, 30 Mar 2015 02:19:09 -0700 (PDT) X-Received: by 10.229.71.2 with SMTP id f2mr41359302qcj.30.1427707149058; Mon, 30 Mar 2015 02:19:09 -0700 (PDT) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com. [209.85.216.181]) by mx.google.com with ESMTPS id z21si653737qkz.51.2015.03.30.02.19.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 02:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.216.181 as permitted sender) client-ip=209.85.216.181; Received: by qcay5 with SMTP id y5so65159610qca.1 for ; Mon, 30 Mar 2015 02:19:09 -0700 (PDT) X-Received: by 10.140.232.80 with SMTP id d77mr29251481qhc.79.1427707148989; Mon, 30 Mar 2015 02:19:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.96.155.231 with SMTP id vz7csp1314306qdb; Mon, 30 Mar 2015 02:19:08 -0700 (PDT) X-Received: by 10.194.234.40 with SMTP id ub8mr62627484wjc.100.1427707147822; Mon, 30 Mar 2015 02:19:07 -0700 (PDT) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com. [209.85.212.182]) by mx.google.com with ESMTPS id pc3si17630183wic.52.2015.03.30.02.19.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 02:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.182 as permitted sender) client-ip=209.85.212.182; Received: by wiaa2 with SMTP id a2so119602537wia.0 for ; Mon, 30 Mar 2015 02:19:07 -0700 (PDT) X-Received: by 10.194.176.162 with SMTP id cj2mr60561768wjc.93.1427707147348; Mon, 30 Mar 2015 02:19:07 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id dk7sm1884694lbc.28.2015.03.30.02.19.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 02:19:06 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Hans de Goede Subject: [PATCH] mmc: core: Cleanup unused OF nodes while parsing for child nodes Date: Mon, 30 Mar 2015 11:19:01 +0200 Message-Id: <1427707141-3152-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.216.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index c296bc0..e6b0bdb 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1291,6 +1291,8 @@ struct device_node *mmc_of_find_child_device(struct mmc_host *host, for_each_child_of_node(host->parent->of_node, node) { if (mmc_of_get_func_num(node) == func_num) return node; + else + of_node_put(node); } return NULL;