From patchwork Tue Oct 10 13:27:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zumeng Chen X-Patchwork-Id: 9996125 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D6CF6601AE for ; Tue, 10 Oct 2017 13:23:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4E98285D1 for ; Tue, 10 Oct 2017 13:23:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9891285D3; Tue, 10 Oct 2017 13:23:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 63D32285D1 for ; Tue, 10 Oct 2017 13:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2hiUjdfxwP8EdIEK9RS34ZyzNpWL8YQRRohiLBKHPjQ=; b=gRoIDujFSNYIWU wyOE3cIQg8hjcNciajPGaHYrYr7NyNNL/iC1uM6zL37W5u+MRgc+YaA/478D6nmON5wSalrcj5Kow MHOzToe327Gcl8SOWiV0BRDlBP48kgMdsch+temNqUeXEBl2cxK3eoHwU9hA18Ta8+1l3lcGCkTwX WxtvJirqgq+RcN2tvtnAcJZaICrNb3Er0WLWlHAXWPNo/aIzhLqq67/IEOl2Qk26a83oRxgpp/JYH mPTL7SnTvWaKSaVXWEThyKtbhfhdhNmahYlulo5hCkoouYiIp9POexnax3++XxCv08N2xlPsHqV5y A0zLqrTa3WDl0Ta6Kg7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1uVM-0003g2-9a; Tue, 10 Oct 2017 13:23:28 +0000 Received: from mail.windriver.com ([147.11.1.11]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1uVE-0003b7-9D for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2017 13:23:25 +0000 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id v9ADMsZa019425 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 10 Oct 2017 06:22:54 -0700 (PDT) Received: from pek-lpgbuild4.wrs.com (128.224.153.32) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Tue, 10 Oct 2017 06:22:53 -0700 From: Zumeng Chen To: , , Subject: [PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put() Date: Tue, 10 Oct 2017 21:27:20 +0800 Message-ID: <1507642040-13646-1-git-send-email-zumeng.chen@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171010_062320_360456_676D4B6D X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tony@atomide.com, viresh.kumar@linaro.org, Zumeng Chen , rjw@rjwysocki.net, d-gerlach@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP call of_node_put to release the refcount of np. Signed-off-by: Zumeng Chen Acked-by: Viresh Kumar --- 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 ffcddcd..923317f 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;