From patchwork Wed Sep 9 04:42:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 11764857 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD4FD138E for ; Wed, 9 Sep 2020 04:44:47 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BCFF21D46 for ; Wed, 9 Sep 2020 04:44:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="cwbBCH5b" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BCFF21D46 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5424+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id HcetYY4521763xwoQLlYw01z; Tue, 08 Sep 2020 21:44:47 -0700 X-Received: from wens.tw (wens.tw [140.112.194.72]) by mx.groups.io with SMTP id smtpd.web10.6633.1599626683531375698 for ; Tue, 08 Sep 2020 21:44:43 -0700 X-Received: by wens.tw (Postfix, from userid 1000) id 0ACC560161; Wed, 9 Sep 2020 12:44:33 +0800 (CST) From: "Chen-Yu Tsai (Moxa)" To: nobuhiro1.iwamatsu@toshiba.co.jp, pavel@denx.de Cc: cip-dev@lists.cip-project.org, JohnsonCH.Chen@moxa.com, victor.yu@moxa.com, wens@csie.org Subject: [cip-dev] [PATCH 4.4.y-cip 07/11] cpufreq: ti-cpufreq: add missing of_node_put() Date: Wed, 9 Sep 2020 12:42:29 +0800 Message-Id: <20200909044233.4115-8-wens@csie.org> In-Reply-To: <20200909044233.4115-1-wens@csie.org> References: <20200909044233.4115-1-wens@csie.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: 3kOEjIz1dfByGi7zFP7CzyWmx4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1599626687; bh=rtqkzAsg9ZvPmnMNeeT49PqLFmDndByAZEgn4reRhwM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=cwbBCH5bcZib27IwgMtEnFeHuLLmm+9DynC/1WsniWGlXywAQjNs84xPbD+FoRpTiQy f0wwonBkF1IkYErL9vzGGzyhTahEyvfccd+aTSpIsYiUMqwzUw3oaJAt1Da8C4MAOUwuy CJ3SUkR2tRS+ZhcgR92Bith13A65a1qKNk4= From: Zumeng Chen commit 248aefdcc3a7e0cfbd014946b4dead63e750e71b upstream. call of_node_put to release the refcount of np. Signed-off-by: Zumeng Chen Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki Signed-off-by: Chen-Yu Tsai (Moxa) --- drivers/cpufreq/ti-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index 36627b2b256f8..afbe9db29992d 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -205,6 +205,7 @@ static int ti_cpufreq_init(void) np = of_find_node_by_path("/"); match = of_match_node(ti_cpufreq_of_match, np); + of_node_put(np); if (!match) return -ENODEV;