Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2323073ybl; Sat, 14 Dec 2019 10:12:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzsQsqMro25G/M7FRUuqVqoDz2uFyG7jfddYSWGIlyIQlywTopsY3RBe7/lbteAuPbRe55E X-Received: by 2002:a05:6830:18e6:: with SMTP id d6mr22122108otf.170.1576347151621; Sat, 14 Dec 2019 10:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576347151; cv=none; d=google.com; s=arc-20160816; b=FoJfza5hKLN5b0BQyIQ49kLQJojZzE/Ex7+EC3lq/NTaNuViLw86bZOhvRLTyaYaLu DzB4RAlyeDJcAI36y5i4IpJPo2g5NCvMuYNKs0KozyGutWjRQOdr3GGfWEF6rKeFJfBz kJ+01km2FMIqzwg8OYoLGTl/llIAuoX1XfMu0zRRRiU764Ie8mlqW7pQN2Sm5mREO9jM VGDsV7vQGt423Pz2ZY4S6hPoyyn/Wq0j4159v9xmK7eEZteFQc1vSn3Pvd5ihafqu7RS jpp20FbTSKF3gc+Di015ioCzG+gN/kIt8CBb00I4794kb0p67lEHmZO57SYfehkVAO3r U53g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SvTdvPiQ4xS/R0i2wr0OUTzm/R634IQg+liWq51l5qI=; b=ea2Q0MPJAGipF93Zhx/93XvRWMI71I492AGyrVaQYc737RMhKCGfjzP0qa3B/a16vl anR6ZTAajfNnL8XA6j1ilqGyeL3LmMLbv6/2eSwbnVqYJfJr5smVpTvQk84xp4sr6u3e Hs5NCKekZpk8f2s/6oGMimBgS1wrD+05Y1NZ15568P4+Y0zZ9+nNoMqEDEIwBzLOhSb0 piYxFsROM11p1/fX7K0fi3NYpvXAtbD6JWU/ngZFEwOcaEbP3QPpV+8U8puxh+Jg675b 9l4niXOdlt068ZPDRukevbgVN1eKmcwISfPClK1Z8BPSmr3FojwEJAg+1OIrpPOaYYIs 9dVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GjJhF1CA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si7236074otp.111.2019.12.14.10.12.19; Sat, 14 Dec 2019 10:12:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GjJhF1CA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbfLNSLi (ORCPT + 99 others); Sat, 14 Dec 2019 13:11:38 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); } -- 2.17.1