From patchwork Sat Dec 14 18:11:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 11292483 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 F29FD14E3 for ; Sat, 14 Dec 2019 18:11:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE7F4207FD for ; Sat, 14 Dec 2019 18:11:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nVF+J5AO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GjJhF1CA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE7F4207FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=FLSW53zt6BqA9XMoRSO/O7JPKhkxLO3xCM5nG8BGKxY=; b=nVF+J5AO6rICJ30eHKSDg+Zj3C FHtPoyMeh7thC5PuWuWJmoM3jNbxkxogNWF4E9Djhm0XG6pNYfF2awgjhbKFe5h0sa7gFDVJWK1wI b0LOVASzeYdG4R0zR0DvJ4qPEQCv8C+GoYLRSnqBPC9OB5ab3DmBkRaycXRlE3l4iGYUIFC7ADVd2 a3Ug70J2FNNsBN4Tjj9hpSDSS/Y4q7AiuNgaO7VYBXCE1Rn1fFKCkmenkAQBkUezA/wk94joS5meH tJhkn7VVPOW7Fg5nT2C0E2h24jL2A8v3hAqk/KrNmUDrvxKr5ZdZGbDemQnz0hgY+j96vOBcWXiVy vTbzoMOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1igBtL-0004eY-Uf; Sat, 14 Dec 2019 18:11:47 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1igBtA-0004T9-TH; Sat, 14 Dec 2019 18:11:38 +0000 Received: by mail-pl1-x641.google.com with SMTP id x17so2643309pln.1; Sat, 14 Dec 2019 10:11:36 -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:in-reply-to:references; bh=SvTdvPiQ4xS/R0i2wr0OUTzm/R634IQg+liWq51l5qI=; b=GjJhF1CAXzdxoO+FucPX1sTsI0/8x0LFMpCRzTIKTB81SGg0MRkFv1GuE/kKOUL7UM 6xh1yviwLoQNhqQclDhr0qbETgbrQEG3Ud5h6lssD5CihvWHgbVvX6aL1znY47R16vE/ ni44huX7x6QKD+AxFPeFCEPoWTnbtgzVWNKv8UqHGkmTqwiSPs5E+KsZp2EXozsYAOhX 3hYprEBKDcQcZKcQD4ARCH0TFznsrlG/fZGamrUOwgWtiiVSUq8eqaX6lUkslUZDWMwO X6+igpp4YIpotZWdWePFhV80TtqzIO+7MiGcJ+TpQj+fIBok9XfGdQvGdXu+alQtEHut 4SGg== 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:in-reply-to :references; bh=SvTdvPiQ4xS/R0i2wr0OUTzm/R634IQg+liWq51l5qI=; b=Ok2Vmmkf7urqLIStQBRMsIJ7xQIAAsvDQKiHnRp3UJnVBVh2IDC+y29+c8HAMvBUkW bG5a6Skgx1rw9bbYHDivADiTsV2CaXn0cGzcxmdx5zJ2wz1krwX8Em+HlNSv2Eu1v23r nnIV8jQZvymjtybxa7eU3mgh3Q+tSIBGyclBG9OkgFW+YRM8NFQZDp+Yo0kAdYOBFKpv dKX+/PlcT15Sqnzc+YAxJWqHk4F4rzOOkYvOjQWC2ov1PS8jd9tFgKKLK3ukj0uk0kHP BEfTI1cFzNA3DjzuCTjl+00R1y1IE1yR1L/sJ2M35sf9WJDF/KwS1oO7ianHD9CdwZzF EuGQ== X-Gm-Message-State: APjAAAVIttndz34aSmogDUOwt+A5iiFp+rY+9NF/B3J9KCPsAfJCwDk0 6SrnjL8oWRKg8nrdkk7bD8Y= X-Google-Smtp-Source: APXvYqwO9rgNZe3r1YYJXfOMjUaz6xLzQB0K3HMgzzIWBQTtDHfKH5LltW8bhA04msSercIVr4AEHw== X-Received: by 2002:a17:902:8541:: with SMTP id d1mr6447836plo.57.1576347096300; Sat, 14 Dec 2019 10:11:36 -0800 (PST) Received: from localhost ([2001:19f0:6001:12c8:5400:2ff:fe72:6403]) by smtp.gmail.com with ESMTPSA id f8sm13276261pfn.2.2019.12.14.10.11.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Dec 2019 10:11:35 -0800 (PST) From: Yangtao Li To: cw00.choi@samsung.com, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, heiko@sntech.de Subject: [PATCH 2/2] PM / devfreq: rk3399_dmc: add missing of_node_put() Date: Sat, 14 Dec 2019 18:11:30 +0000 Message-Id: <20191214181130.25808-2-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191214181130.25808-1-tiny.windzz@gmail.com> References: <20191214181130.25808-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191214_101136_952576_E817D1EF X-CRM114-Status: GOOD ( 10.75 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tiny.windzz[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yangtao Li , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org of_node_put() needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Yangtao Li --- drivers/devfreq/rk3399_dmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 2e65d7279d79..2f1027c5b647 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -372,6 +372,7 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev) node = of_parse_phandle(np, "rockchip,pmu", 0); if (node) { data->regmap_pmu = syscon_node_to_regmap(node); + of_node_put(node); if (IS_ERR(data->regmap_pmu)) return PTR_ERR(data->regmap_pmu); }