From patchwork Tue Nov 20 12:54:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10690379 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52DF414E2 for ; Tue, 20 Nov 2018 12:54:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4337D2A82E for ; Tue, 20 Nov 2018 12:54:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35B4F2A843; Tue, 20 Nov 2018 12:54:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F0A62A846 for ; Tue, 20 Nov 2018 12:54:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727807AbeKTXXc (ORCPT ); Tue, 20 Nov 2018 18:23:32 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40623 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728041AbeKTXXb (ORCPT ); Tue, 20 Nov 2018 18:23:31 -0500 Received: by mail-pg1-f195.google.com with SMTP id z10so872173pgp.7; Tue, 20 Nov 2018 04:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=P/3VXg8b0/4qPYj4Pzh+gl0+DIckFaNnC0YLvJ86HAM=; b=BdbgmrMCK9QQDDwZaR89+Oeydl2jh6Rskdd6w6Un+ny/zC95QQTPnqTC/5b2nmXEFG lyf+U6ks0r5WVDj63Shna1DNOPO4M/NiBC8iCAxBwBaffDSuz8oKWaVbR0/1vFVs7wGf dtEIjauD0uyQnk8NzVAY2djyCY5xqC90I+wjQLdELPGv564IsvFnjH5GFzfuG/SMKXPz zv2RgVfBQ1AwiXjfbZ/CDo4mcTy2v9eUCJWen8KGfKRYS7ywx7gei9Ng9ffTJAbTNWdh dRHm1zv6rjT7POhMUc1BL8kosypSBYBTCe1O8WHnAsML86OKILmhssw6MrZop49AMz3y yhpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=P/3VXg8b0/4qPYj4Pzh+gl0+DIckFaNnC0YLvJ86HAM=; b=WvJWNaibAQ9D/cWwQVKkpSiZoNN2aV9xYBEgNurGbVOjfzoO6/yiQr+liFpf5m9R/J 2Hvu4ICeSUGeV+NpleHHGFWy8xrqRXZaJxnlHcxHDMkhPW2m3p2XJSw9BzTt1TJ07dgZ 0WkiYpXM4RjBIVhdVOvEv1cjYsgEucSvZbkfFObDAdq5IuepGP9JXFTJmrl6AlYRBZb0 cA5Gfuxs8kfZzaMGso8ImD02l44T0pjPQ5rtL9KsoCl6FuAN1m7WcrDHmy2Ad4ubWrs0 +OHE1V3tvZA6DyV3S9B3Ay9/lIEMarwQb0WtggplXnQmuQ3I470zhESnhg/uoEwcvFwj TG/w== X-Gm-Message-State: AA+aEWaYpBVJt077k17y/YR/vlj9iq8UuKm9Rqjg0kmyIBlcImBmuSoj FFXNCPLFh37S0PIIaudybv9DYcCTLJE= X-Google-Smtp-Source: AFSGD/VkkW0lTT545K+a1nU7mFd15HQLWJTtf6yT/OKOWVbrAtCOPjrcEqIDEg/82465TRbpqCKTIw== X-Received: by 2002:a63:b94c:: with SMTP id v12mr1761215pgo.221.1542718471646; Tue, 20 Nov 2018 04:54:31 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id j64-v6sm17959447pfc.43.2018.11.20.04.54.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 04:54:29 -0800 (PST) From: Yangtao Li To: rjw@rjwysocki.net, viresh.kumar@linaro.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH] cpufreq: pmac64: add of_node_put() Date: Tue, 20 Nov 2018 07:54:09 -0500 Message-Id: <20181120125409.19314-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP use of_node_put to release the refcount of node. Signed-off-by: Yangtao Li Acked-by: Viresh Kumar --- drivers/cpufreq/pmac64-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index be623dd7b9f2..1d32a863332d 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -411,6 +411,7 @@ static int __init g5_neo2_cpufreq_init(struct device_node *cpunode) pfunc_set_vdnap0 = pmf_find_function(root, "set-vdnap0"); pfunc_vdnap0_complete = pmf_find_function(root, "slewing-done"); + of_node_put(root); if (pfunc_set_vdnap0 == NULL || pfunc_vdnap0_complete == NULL) { pr_err("Can't find required platform function\n");