From patchwork Sat Dec 14 18:11:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 11292477 X-Patchwork-Delegate: cw00.choi@samsung.com 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 AA61314E3 for ; Sat, 14 Dec 2019 18:11:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86259207FD for ; Sat, 14 Dec 2019 18:11:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nJtCJigh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbfLNSLe (ORCPT ); Sat, 14 Dec 2019 13:11:34 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:37223 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbfLNSLe (ORCPT ); Sat, 14 Dec 2019 13:11:34 -0500 Received: by mail-pj1-f67.google.com with SMTP id ep17so1139818pjb.4; Sat, 14 Dec 2019 10:11:34 -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=v1jzw3cTgARl5UtByan28qHh9GkTIdbeMdcGnEnNuqQ=; b=nJtCJighcBW7qQ0mUEAJ+mt8TIpyIXMY4sumdT4LQ3mKPCkagjoGjn2/CdUIK4ZVI5 VIx1bvfJi1AA6AFFxhP1zt43mog6ji/gwenI530G5DagqKmcWQBd7GCKxbuZJxbzRPxQ BcPgsvhKQlRubwxNqhuN3/hSMl5kYOng9thJetOaergkSAyaofdC0jRZPQNfKZes/7XT oQKYpwlPN+wPBYkwtoUyTvRGvwQZglorntRKlPsm/TY6eJ7isjWA74TFxG5Nx590LCdS I1/lSTh8C6nkBBKa3UJ2gZZgiLf7I4NVAyudgR5hWzVrx+aaEhYt6J4HcMChKWYbdmn4 E3/w== 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=v1jzw3cTgARl5UtByan28qHh9GkTIdbeMdcGnEnNuqQ=; b=qFkf1bKZSjtHaKT9ay1kQL9L2RjCNH6t33J2yGi1dcMrMyp6XI0SUj4jn05uQ1G161 WsUJVz9nHnnE9OfeUNzZGutgM+kez/yGqlTxvVJjgvSe9Q8OP74JCy74/q0WGqBp3HEK eoTYls4LPSo7Pcs73/RAsHDNWG00mNIcNkM4gZusjbz6QiLH9AoNjqPs1ETjy7XJrb6i NuD8OSZv1tMSSzg2gpoz7PFSmASszVqs8GCXcpu8vh1BARP+6QQqmh+Q0UUF8he47zvB QXQVBzE7D5TiW2f1+4kXM69MAesUG0InAyHfbEPEorDWyISUwHSJMRaOHQUIRip9d8ln 5CyA== X-Gm-Message-State: APjAAAXGCfiwaEyrvo7+tHkHTvXl9mK1WV19Hbrn4D8U/NvxOzOE3fPO Kdm6x5vnEsndVN+1XcPgUfI= X-Google-Smtp-Source: APXvYqzws7Irzz8SVSeA5eeveXWvkJ2t4wz1lTz0HCd8Gn3Nu+eQpYu7QiRwV5E7bR75avFW+NGUeQ== X-Received: by 2002:a17:902:8693:: with SMTP id g19mr6130524plo.116.1576347094175; Sat, 14 Dec 2019 10:11:34 -0800 (PST) Received: from localhost ([2001:19f0:6001:12c8:5400:2ff:fe72:6403]) by smtp.gmail.com with ESMTPSA id b73sm16427814pfb.72.2019.12.14.10.11.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Dec 2019 10:11:33 -0800 (PST) From: Yangtao Li To: cw00.choi@samsung.com, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, heiko@sntech.de Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH 1/2] PM / devfreq: rockchip-dfi: add missing of_node_put() Date: Sat, 14 Dec 2019 18:11:29 +0000 Message-Id: <20191214181130.25808-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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/event/rockchip-dfi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event/rockchip-dfi.c index 5d1042188727..45b190e443d8 100644 --- a/drivers/devfreq/event/rockchip-dfi.c +++ b/drivers/devfreq/event/rockchip-dfi.c @@ -200,6 +200,7 @@ static int rockchip_dfi_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); } 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: 11292481 X-Patchwork-Delegate: cw00.choi@samsung.com 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 5B263138C for ; Sat, 14 Dec 2019 18:11:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 371EF207FD for ; Sat, 14 Dec 2019 18:11:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GjJhF1CA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbfLNSLh (ORCPT ); Sat, 14 Dec 2019 13:11:37 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:33089 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbfLNSLh (ORCPT ); Sat, 14 Dec 2019 13:11:37 -0500 Received: by mail-pj1-f68.google.com with SMTP id r67so1148914pjb.0; 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=SAi0fXmjUwWcM0gyarAOTC1jqa2bw9J1mgvb+ldBRF9ZoAIpoPTKdXj02oeOjj6cVk BtX+hGVh/PhDaxZK88X/m+bij/kvvDFU2qObVbbnGNqLkuBIJMliPwCw9dJtRM7BTA1U CYLfJNUgy9b8R0Kr9bQIpvyeMM4TicTz0lpsHz8I4wyNPMHwZL9wR00HIzyX3S77hlsX Ya72WhXbJcxdpwu9QfLwvteMZDRh8GPwckwgtk3ErAuhVHJdZelpk937/pBpyfmBXzhL 3K2tKhnONUbbGtla0Nl46tyFsQRZ/KPUC0xLGKZAFnWRMd3QAjgp/2V+LgNzrY8q/Qvq S80g== X-Gm-Message-State: APjAAAWSzFomgwIym5wkBevIMvbnkDh94B1O0UhB6vi5E2FnCIb8zY6I rMKqDyLmMpAQ0qTRbMMy0BQ= 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 Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yangtao Li 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> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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); }